Skip to content

Commit 38e6d1d

Browse files
committed
Update the docstring of get_box_model
It looks like the get_auto_* parameters got renamed at some point so this seeks to update the docstring for that. I'm not 100% sure if the description of the parameters fully holds so that'll need checking.
1 parent 9fd1e76 commit 38e6d1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/textual/box_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ def get_box_model(
3333
viewport (Size): The viewport size.
3434
width_fraction (Fraction): A fraction used for 1 `fr` unit on the width dimension.
3535
height_fraction (Fraction):A fraction used for 1 `fr` unit on the height dimension.
36-
get_auto_width (Callable): A callable which accepts container size and parent size and returns a width.
37-
get_auto_height (Callable): A callable which accepts container size and parent size and returns a height.
36+
get_content_width (Callable[[Size, Size], int]): A callable which accepts container size and parent size and returns a width.
37+
get_content_height (Callable[[Size, Size, int], int]): A callable which accepts container size and parent size and returns a height.
3838
3939
Returns:
4040
BoxModel: A tuple with the size of the content area and margin.

0 commit comments

Comments
 (0)