aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarc Englund <marc.englund@itmill.com>2008-02-01 14:46:02 +0000
committerMarc Englund <marc.englund@itmill.com>2008-02-01 14:46:02 +0000
commit7e2d7da3d18ca3cc1809949024b5bca27ad7ba68 (patch)
tree8e8774a1ef205a97f734e7c1e698c3c153615580 /src
parent0d5ed4bdebacb5fd01adc01c6074d348a02fc532 (diff)
downloadvaadin-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')
-rw-r--r--src/com/itmill/toolkit/ui/GridLayout.java6
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();
}