]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed an issue with VBoxLayout causing a DOM exception when moving components from...
authorJouni Koivuviita <jouni@jounikoivuviita.com>
Wed, 18 Apr 2012 14:00:49 +0000 (17:00 +0300)
committerJouni Koivuviita <jouni@jounikoivuviita.com>
Wed, 18 Apr 2012 14:00:49 +0000 (17:00 +0300)
src/com/vaadin/terminal/gwt/client/ui/VBoxLayout.java

index 1b06861b8aca87c9024531260b5f08518061f29d..d6efc97e5040b18992f8f768b722757afcfc1bcc 100644 (file)
@@ -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) {