mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
tiny optimiztion
This commit is contained in:
@@ -41,7 +41,6 @@ def arrange(
|
||||
|
||||
placements: list[WidgetPlacement] = []
|
||||
add_placement = placements.append
|
||||
region = size.region
|
||||
|
||||
_WidgetPlacement = WidgetPlacement
|
||||
top_z = TOP_Z
|
||||
@@ -50,8 +49,9 @@ def arrange(
|
||||
get_dock = attrgetter("styles.dock")
|
||||
styles = widget.styles
|
||||
|
||||
layer_region = size.region
|
||||
for widgets in dock_layers.values():
|
||||
region = size.region
|
||||
region = layer_region
|
||||
|
||||
layout_widgets, dock_widgets = partition(get_dock, widgets)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user