File tree 1 file changed +7
-2
lines changed
modules/javafx.controls/src/main/java/javafx/scene/control/skin
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -2348,8 +2348,13 @@ private void updateViewportDimensions() {
2348
2348
final double breadthBarLength = isVertical ? snapSizeY (hbar .prefHeight (-1 )) : snapSizeX (vbar .prefWidth (-1 ));
2349
2349
final double lengthBarBreadth = isVertical ? snapSizeX (vbar .prefWidth (-1 )) : snapSizeY (hbar .prefHeight (-1 ));
2350
2350
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
+ }
2353
2358
}
2354
2359
2355
2360
private void initViewport () {
You can’t perform that action at this time.
0 commit comments