We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ec7d38 commit a6b1710Copy full SHA for a6b1710
src/textual/_arrange.py
@@ -99,8 +99,18 @@ def arrange(
99
# Perform any alignment of the widgets.
100
if styles.align_horizontal != "left" or styles.align_vertical != "top":
101
bounding_region = WidgetPlacement.get_bounds(layout_placements)
102
+ container_width, container_height = dock_region.size
103
+ # if styles.is_auto_height:
104
+ # container_height = 0
105
+ # if styles.is_auto_width:
106
+ # container_width = 0
107
+
108
placement_offset += styles._align_size(
- bounding_region.size, dock_region.size
109
+ bounding_region.size,
110
+ Size(
111
+ 0 if styles.is_auto_width else container_width,
112
+ 0 if styles.is_auto_height else container_height,
113
+ ),
114
).clamped
115
116
if placement_offset:
0 commit comments