Skip to content

Commit 5a41900

Browse files
committed
simplify
1 parent d1baa64 commit 5a41900

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/textual/_arrange.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,9 @@ def arrange(
100100
if styles.align_horizontal != "left" or styles.align_vertical != "top":
101101
bounding_region = WidgetPlacement.get_bounds(layout_placements)
102102
container_width, container_height = dock_region.size
103-
extrema = widget._extrema
104103
placement_offset += styles._align_size(
105104
bounding_region.size,
106-
extrema.apply_dimensions(
105+
widget._extrema.apply_dimensions(
107106
0 if styles.is_auto_width else container_width,
108107
0 if styles.is_auto_height else container_height,
109108
),

0 commit comments

Comments
 (0)