@@ -14,11 +14,11 @@ and then can be [mounted][textual.screen.Screen.mount] or
14
14
15
15
### Sizing
16
16
17
- When [ creating it] [ textual_canvas.canvas.Canvas ] you provide a
18
- width and a height of the canvas in "pixels" Note that these values are the
19
- dimensions of the canvas that the "pixels" are drawn on, not the size of the
20
- widget; the widget itself is sized using all the normal Textual styling and
21
- geometry rules.
17
+ When [ creating it] [ textual_canvas.canvas.Canvas ] you provide a width and a
18
+ height of the canvas in "pixels". Note that these values are the dimensions
19
+ of the canvas that the "pixels" are drawn on, not the size of the widget;
20
+ the widget itself is sized using all the [ normal Textual styling and
21
+ geometry rules] ( https://textual.textualize.io/guide/layout/ ) .
22
22
23
23
To illustrate, here are two ` Canvas ` widgets, one where the widget is bigger
24
24
than the canvas, and one where the canvas is bigger than the widget:
@@ -48,8 +48,8 @@ There are three main colours to consider when working with `Canvas`:
48
48
49
49
#### Widget vs canvas background
50
50
51
- The difference ion the first two items listed above might not seem obvious
52
- to start with. The ` Canvas ` widget, like all other Textual widgets, has a
51
+ The difference in the first two items listed above might not seem obvious to
52
+ start with. The ` Canvas ` widget, like all other Textual widgets, has a
53
53
[ background] ( https://textual.textualize.io/styles/background/ ) ; you can
54
54
style this with CSS just as you always would. But the canvas itself -- the
55
55
area that you'll be drawing in inside the widget -- can have its own
0 commit comments