File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
modules/javafx.controls/src/main/java/javafx/scene/control/skin Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -2348,8 +2348,13 @@ private void updateViewportDimensions() {
23482348 final double breadthBarLength = isVertical ? snapSizeY (hbar .prefHeight (-1 )) : snapSizeX (vbar .prefWidth (-1 ));
23492349 final double lengthBarBreadth = isVertical ? snapSizeX (vbar .prefWidth (-1 )) : snapSizeY (hbar .prefHeight (-1 ));
23502350
2351- setViewportBreadth ((isVertical ? getWidth () : getHeight ()) - (needLengthBar ? lengthBarBreadth : 0 ));
2352- setViewportLength ((isVertical ? getHeight () : getWidth ()) - (needBreadthBar ? breadthBarLength : 0 ));
2351+ if (!Properties .IS_TOUCH_SUPPORTED ) {
2352+ setViewportBreadth ((isVertical ? getWidth () : getHeight ()) - (needLengthBar ? lengthBarBreadth : 0 ));
2353+ setViewportLength ((isVertical ? getHeight () : getWidth ()) - (needBreadthBar ? breadthBarLength : 0 ));
2354+ } else {
2355+ setViewportBreadth ((isVertical ? getWidth () : getHeight ()));
2356+ setViewportLength ((isVertical ? getHeight () : getWidth ()));
2357+ }
23532358 }
23542359
23552360 private void initViewport () {
You can’t perform that action at this time.
0 commit comments