diff options
author | Marc Englund <marc.englund@itmill.com> | 2008-02-01 14:46:02 +0000 |
---|---|---|
committer | Marc Englund <marc.englund@itmill.com> | 2008-02-01 14:46:02 +0000 |
commit | 7e2d7da3d18ca3cc1809949024b5bca27ad7ba68 (patch) | |
tree | 8e8774a1ef205a97f734e7c1e698c3c153615580 /src/com/itmill/toolkit/ui/GridLayout.java | |
parent | 0d5ed4bdebacb5fd01adc01c6074d348a02fc532 (diff) | |
download | vaadin-framework-7e2d7da3d18ca3cc1809949024b5bca27ad7ba68.tar.gz vaadin-framework-7e2d7da3d18ca3cc1809949024b5bca27ad7ba68.zip |
Changed addComponent() a bit: must call super, can't call setParent() directly.
svn changeset:3706/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/ui/GridLayout.java')
-rw-r--r-- | src/com/itmill/toolkit/ui/GridLayout.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/itmill/toolkit/ui/GridLayout.java b/src/com/itmill/toolkit/ui/GridLayout.java index ec56136e22..ad91568390 100644 --- a/src/com/itmill/toolkit/ui/GridLayout.java +++ b/src/com/itmill/toolkit/ui/GridLayout.java @@ -193,9 +193,12 @@ public class GridLayout extends AbstractLayout { // Checks that newItem does not overlap with existing items checkExistingOverlaps(area); + // first attemt to add to super + super.addComponent(component); + // Inserts the component to right place at the list // Respect top-down, left-right ordering - component.setParent(this); + // component.setParent(this); final Iterator i = areas.iterator(); int index = 0; boolean done = false; @@ -214,7 +217,6 @@ public class GridLayout extends AbstractLayout { components.addLast(component); } - super.addComponent(component); requestRepaint(); } |