Skip to content

Commit 4d9b2e4

Browse files
committed
CSSTUDIO-3523 Bugfix: Use 'layoutBoundsWithoutScrollbars' instead of 'layoutBoundsWithScrollbars' in if-condition.
1 parent b6248e4 commit 4d9b2e4

File tree

1 file changed

+2
-2
lines changed
  • app/display/representation-javafx/src/main/java/org/csstudio/display/builder/representation/javafx

1 file changed

+2
-2
lines changed

app/display/representation-javafx/src/main/java/org/csstudio/display/builder/representation/javafx/JFXRepresentation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ else if (scrollBar.isVisible() && scrollBar.getOrientation() == Orientation.VERT
516516
// correct width/height properties.
517517
final double zoomXWithoutScrollbars, zoomYWithoutScrollbars;
518518
final double zoomXWithScrollbars, zoomYWithScrollbars;
519-
if (outline.getWidth() > layoutBoundsWithScrollbars.getWidth()) {
519+
if (outline.getWidth() > layoutBoundsWithoutScrollbars.getWidth()) {
520520
zoomXWithoutScrollbars = layoutBoundsWithoutScrollbars.getWidth() / outline.getWidth();
521521
zoomXWithScrollbars = layoutBoundsWithScrollbars.getWidth() / outline.getWidth();
522522
}
@@ -529,7 +529,7 @@ else if (model.propWidth().getValue() > 0) {
529529
zoomXWithScrollbars = 1.0;
530530
}
531531

532-
if (outline.getHeight() > layoutBoundsWithScrollbars.getHeight()) {
532+
if (outline.getHeight() > layoutBoundsWithoutScrollbars.getHeight()) {
533533
zoomYWithoutScrollbars = layoutBoundsWithoutScrollbars.getHeight() / outline.getHeight();
534534
zoomYWithScrollbars = layoutBoundsWithScrollbars.getHeight() / outline.getHeight();
535535
}

0 commit comments

Comments
 (0)