Skip to content

Commit 91b8a24

Browse files
committed
Remove extra offsets since in containers coord system
1 parent 6082ed7 commit 91b8a24

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

gtk/src/toga_gtk/container.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ def do_allocate(self, container, width, height, baseline):
7272
# the Toga widget. Toga maintains a tree of children; all nodes
7373
# in that tree are direct children of the container.
7474

75-
container_rect = container.get_allocation()
7675
# Process each child widget
7776
child_widget = container.get_first_child()
7877
while child_widget is not None:
@@ -86,11 +85,9 @@ def do_allocate(self, container, width, height, baseline):
8685
child_widget_allocation = Gdk.Rectangle()
8786
child_widget_allocation.x = (
8887
child_widget.interface.layout.absolute_content_left
89-
+ container_rect.x
9088
)
9189
child_widget_allocation.y = (
9290
child_widget.interface.layout.absolute_content_top
93-
+ container_rect.y
9491
)
9592
child_widget_allocation.width = (
9693
child_widget.interface.layout.content_width

0 commit comments

Comments
 (0)