From: Jouni Koivuviita Date: Wed, 18 Apr 2012 14:00:49 +0000 (+0300) Subject: Fixed an issue with VBoxLayout causing a DOM exception when moving components from... X-Git-Tag: 7.0.0.beta1~259 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cc7477d3a20a9725f34f83537bb0aa094a46e6bd;p=vaadin-framework.git Fixed an issue with VBoxLayout causing a DOM exception when moving components from one layout to another --- diff --git a/src/com/vaadin/terminal/gwt/client/ui/VBoxLayout.java b/src/com/vaadin/terminal/gwt/client/ui/VBoxLayout.java index 1b06861b8a..d6efc97e50 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VBoxLayout.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VBoxLayout.java @@ -390,6 +390,15 @@ public class VBoxLayout extends FlowPanel { } } + @Override + protected Element getContainerElement() { + if (captionWrap == null) { + return getElement(); + } else { + return captionWrap; + } + } + @Override protected void onDetach() { if (spacer != null) {