]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed splitPanel allocated space calculation
authorArtur Signell <artur.signell@itmill.com>
Wed, 1 Oct 2008 11:19:06 +0000 (11:19 +0000)
committerArtur Signell <artur.signell@itmill.com>
Wed, 1 Oct 2008 11:19:06 +0000 (11:19 +0000)
svn changeset:5574/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ui/ISplitPanel.java

index 4c42222c4bf9dad8cd730c916b378e8d2c6a0648..fb279b48abf4433bce4d9cbf81429da6eddb49c4 100644 (file)
@@ -252,7 +252,7 @@ public class ISplitPanel extends ComplexPanel implements Container,
             int contentHeight = renderInformationFirst.getRenderedSize()
                     .getHeight();
             renderInformationFirst.setContentAreaHeight(contentHeight);
-            renderInformationFirst.setContentAreaWidth(getSplitterSize());
+            renderInformationFirst.setContentAreaWidth(pixelPosition);
             renderInformationSecond.setContentAreaHeight(contentHeight);
             renderInformationSecond.setContentAreaWidth(secondContainerWidth);
 
@@ -285,7 +285,7 @@ public class ISplitPanel extends ComplexPanel implements Container,
 
             int contentWidth = renderInformationFirst.getRenderedSize()
                     .getWidth();
-            renderInformationFirst.setContentAreaHeight(getSplitterSize());
+            renderInformationFirst.setContentAreaHeight(pixelPosition);
             renderInformationFirst.setContentAreaWidth(contentWidth);
             renderInformationSecond.setContentAreaHeight(secondContainerHeight);
             renderInformationSecond.setContentAreaWidth(contentWidth);