Skip to content

Commit 2adae6f

Browse files
committed
JSSliderUI fix for JSScrollbarUI
1 parent 358a8ad commit 2adae6f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sources/net.sf.j2s.java.core/src/swingjs/plaf/JSSliderUI.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,8 @@ protected boolean recalculateIfOrientationChanged(boolean doit) {
648648

649649

650650
protected void calculateGeometry() {
651+
if (isScrollBar)
652+
return;
651653
calculateFocusRect();
652654
calculateContentRect();
653655
calculateThumbSize();

0 commit comments

Comments
 (0)