Revert "remove total region update"

This reverts commit 47970dd622.
This commit is contained in:
Will McGugan
2023-05-12 15:49:39 +02:00
parent 47970dd622
commit 4e069abd2e

View File

@@ -603,11 +603,11 @@ class Compositor:
if fixed:
widget_region = sub_region + placement_offset
else:
# total_region = total_region.union(
# sub_region.grow(
# margin if layer_index else margin + scroll_spacing
# )
# )
total_region = total_region.union(
sub_region.grow(
margin if layer_index else margin + scroll_spacing
)
)
widget_region = sub_region + placement_scroll_offset
widget_order = order + ((layer_index, z, layer_order),)