]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed bug in calculating % size when using reverse position (#4296)
authorArtur Signell <artur.signell@itmill.com>
Tue, 10 Apr 2012 20:38:21 +0000 (20:38 +0000)
committerArtur Signell <artur.signell@itmill.com>
Tue, 10 Apr 2012 20:38:21 +0000 (20:38 +0000)
svn changeset:23426/svn branch:6.8

src/com/vaadin/terminal/gwt/client/ui/VSplitPanel.java

index e013ba4263ed9e0144544913ecd000d4abae4eab..51e378cc0c02973524c128208664b460eeaa4442 100644 (file)
@@ -584,7 +584,7 @@ public class VSplitPanel extends ComplexPanel implements Container,
             }
             // Reversed position
             if (positionReversed) {
-                pos = getOffsetWidth() - pos;
+                pos = getOffsetWidth() - pos - getSplitterSize();
             }
             position = (pos / getOffsetWidth() * 100) + "%";
         } else {