summaryrefslogtreecommitdiffstats
path: root/libjava/classpath/javax/swing/JSplitPane.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/javax/swing/JSplitPane.java')
-rw-r--r--libjava/classpath/javax/swing/JSplitPane.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/libjava/classpath/javax/swing/JSplitPane.java b/libjava/classpath/javax/swing/JSplitPane.java
index 2747686a31a..5b77f5176ae 100644
--- a/libjava/classpath/javax/swing/JSplitPane.java
+++ b/libjava/classpath/javax/swing/JSplitPane.java
@@ -708,7 +708,8 @@ public class JSplitPane extends JComponent implements Accessible
throw new IllegalArgumentException
("proportion has to be between 0 and 1.");
- int max = (orientation == HORIZONTAL_SPLIT) ? getWidth() : getHeight();
+ int max = ((orientation == HORIZONTAL_SPLIT) ? getWidth() : getHeight())
+ - getDividerSize();
setDividerLocation((int) (proportionalLocation * max));
}
OpenPOWER on IntegriCloud