From 095b0dfcac0b40cae89535d4c2a68c3f3fc72cc9 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Thu, 15 Sep 2022 11:04:40 +0100 Subject: [PATCH] Update docs/guide/styles.md Co-authored-by: darrenburns --- docs/guide/styles.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/styles.md b/docs/guide/styles.md index 769a21682..e0bf9c29b 100644 --- a/docs/guide/styles.md +++ b/docs/guide/styles.md @@ -39,7 +39,7 @@ The compose method stores a reference to the widget before yielding it. In the m ```{.textual path="docs/examples/guide/styles/widget.py"} ``` -Widgets will occupy the full width of the screen and as many lines as required to fit in the vertical direction. +Widgets will occupy the full width of their container and as many lines as required to fit in the vertical direction. Note how the combined height of the widget is three rows in the terminal. This is because a border adds two rows (and two columns). If you were to remove the line that sets the border style, the widget would occupy a single row.