You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by tv...@apache.org on 2009/08/27 05:04:34 UTC
svn commit: r808264 -
/incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/terra/TerraSplitPaneSkin.java
Author: tvolkert
Date: Thu Aug 27 03:04:34 2009
New Revision: 808264
URL: http://svn.apache.org/viewvc?rev=808264&view=rev
Log:
PIVOT-237 :: Fixed bug in terra split pane skin
Modified:
incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/terra/TerraSplitPaneSkin.java
Modified: incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/terra/TerraSplitPaneSkin.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/terra/TerraSplitPaneSkin.java?rev=808264&r1=808263&r2=808264&view=diff
==============================================================================
--- incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/terra/TerraSplitPaneSkin.java (original)
+++ incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/terra/TerraSplitPaneSkin.java Thu Aug 27 03:04:34 2009
@@ -495,9 +495,6 @@
}
private int limitSplitLocation(int splitLocation) {
- int width = getWidth();
- int height = getHeight();
-
SplitPane splitPane = (SplitPane)getComponent();
Component topLeft = splitPane.getTopLeft();
@@ -507,7 +504,7 @@
if (splitPane.getOrientation() == Orientation.HORIZONTAL) {
lower = 0;
- upper = width - splitterThickness;
+ upper = Math.max(getWidth() - splitterThickness, 0);
if (topLeft != null) {
int leftLimit = topLeft.getMinimumPreferredWidth();
@@ -524,7 +521,7 @@
}
} else {
lower = 0;
- upper = height - splitterThickness;
+ upper = Math.max(getHeight() - splitterThickness, 0);
if (topLeft != null) {
int topLimit = topLeft.getMinimumPreferredHeight();