Skip to content

Commit 297cb38

Browse files
authored
🔀 Merge pull request #19 from davep/docs-tweak
Docs tweaks
2 parents d0605e3 + f632bbd commit 297cb38

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/source/guide.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ and then can be [mounted][textual.screen.Screen.mount] or
1414

1515
### Sizing
1616

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/).
2222

2323
To illustrate, here are two `Canvas` widgets, one where the widget is bigger
2424
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`:
4848

4949
#### Widget vs canvas background
5050

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
5353
[background](https://textual.textualize.io/styles/background/); you can
5454
style this with CSS just as you always would. But the canvas itself -- the
5555
area that you'll be drawing in inside the widget -- can have its own

0 commit comments

Comments
 (0)