diff options
Diffstat (limited to 'server/src/com')
-rw-r--r-- | server/src/com/vaadin/ui/AbsoluteLayout.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/AbsoluteLayout.java b/server/src/com/vaadin/ui/AbsoluteLayout.java index 303e8efd6b..c62da24612 100644 --- a/server/src/com/vaadin/ui/AbsoluteLayout.java +++ b/server/src/com/vaadin/ui/AbsoluteLayout.java @@ -154,6 +154,9 @@ public class AbsoluteLayout extends AbstractLayout implements */ private void addComponent(Component c, ComponentPosition position) throws IllegalArgumentException { + if (equals(c.getParent())) { + removeComponent(c); + } /* * Create position instance and add it to componentToCoordinates map. We * need to do this before we call addComponent so the attachListeners |