From: Matti Tahvonen Date: Wed, 21 Nov 2007 11:44:16 +0000 (+0000) Subject: IExpandLayout: fixed removing widgets X-Git-Tag: 6.7.0.beta1~5528 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5cd4e89ce188c13d6e46c3bd032d1ea8d3d3aaba;p=vaadin-framework.git IExpandLayout: fixed removing widgets svn changeset:2876/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/IExpandLayout.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/IExpandLayout.java index fc86aec057..f4e71cfc92 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/IExpandLayout.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/IExpandLayout.java @@ -464,13 +464,11 @@ public class IExpandLayout extends ComplexPanel implements } public boolean remove(Widget w) { - Element wrapper = DOM.getParent(w.getElement()); + WidgetWrapper ww = getWidgetWrapperFor(w); boolean removed = super.remove(w); if (removed) { if (!(w instanceof Caption)) { - DOM.removeChild(childContainer, - orientationMode == ORIENTATION_HORIZONTAL ? wrapper - : DOM.getParent(wrapper)); + DOM.removeChild(childContainer, ww.getElement()); } return true; }