]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed dissappearing spacing element when child widget was detached and then reattache...
authorJouni Koivuviita <jouni@jounikoivuviita.com>
Thu, 19 Apr 2012 11:23:47 +0000 (14:23 +0300)
committerJouni Koivuviita <jouni@jounikoivuviita.com>
Thu, 19 Apr 2012 11:23:47 +0000 (14:23 +0300)
src/com/vaadin/terminal/gwt/client/ui/VBoxLayout.java

index eae9dd035563dd4389a0395468388b1ae19ddbd8..bb220877bdae46c233f1bf33b86ce00aa7b5ba82 100644 (file)
@@ -407,6 +407,15 @@ public class VBoxLayout extends FlowPanel {
             super.onDetach();
         }
 
+        @Override
+        protected void onAttach() {
+            super.onAttach();
+            if (spacer != null) {
+                getElement().getParentElement().insertBefore(spacer,
+                        getElement());
+            }
+        }
+
     }
 
     protected class Icon extends UIObject {