]> source.dussan.org Git - vaadin-framework.git/commitdiff
Changed order of the containers in DOM 46/446/1
authormichaelvogt <michael@vaadin.com>
Sat, 1 Dec 2012 16:38:05 +0000 (18:38 +0200)
committermichaelvogt <michael@vaadin.com>
Sat, 1 Dec 2012 16:38:05 +0000 (18:38 +0200)
Added necessary position for right handler
As described in Ticket #9182

Change-Id: I46f2f86ae670e5c923a3cb9a1bc34d16770b4cc4

client/src/com/vaadin/client/ui/VAbstractSplitPanel.java

index 9b1143ea4697f957750f92b8b016d0008e2b944c..90f3e49ffb9c6b580255f11678e535669c6378b0 100644 (file)
@@ -185,9 +185,9 @@ public class VAbstractSplitPanel extends ComplexPanel {
         DOM.setStyleAttribute(wrapper, "width", "100%");
         DOM.setStyleAttribute(wrapper, "height", "100%");
 
-        DOM.appendChild(wrapper, secondContainer);
         DOM.appendChild(wrapper, firstContainer);
         DOM.appendChild(wrapper, splitter);
+        DOM.appendChild(wrapper, secondContainer);
 
         DOM.setStyleAttribute(splitter, "position", "absolute");
         DOM.setStyleAttribute(secondContainer, "position", "absolute");
@@ -201,6 +201,7 @@ public class VAbstractSplitPanel extends ComplexPanel {
             DOM.setStyleAttribute(splitter, "height", "100%");
             DOM.setStyleAttribute(splitter, "top", "0");
             DOM.setStyleAttribute(firstContainer, "height", "100%");
+            DOM.setStyleAttribute(secondContainer, "top", "0");
             DOM.setStyleAttribute(secondContainer, "height", "100%");
         } else {
             DOM.setStyleAttribute(splitter, "width", "100%");