mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Merge pull request #739 from Textualize/fix-auto-layout
Fix auto height layout
This commit is contained in:
@@ -91,5 +91,8 @@ class Layout(ABC):
|
||||
height = container.height
|
||||
else:
|
||||
placements, *_ = widget._arrange(Size(width, container.height))
|
||||
height = max(placement.region.bottom for placement in placements)
|
||||
height = max(
|
||||
placement.region.bottom + placement.margin.bottom
|
||||
for placement in placements
|
||||
)
|
||||
return height
|
||||
|
||||
Reference in New Issue
Block a user