From 4d9b2e4dac890a2a1e18ab16b5a2701b29bfc80e Mon Sep 17 00:00:00 2001 From: Abraham Wolk Date: Fri, 31 Oct 2025 08:47:53 +0100 Subject: [PATCH] CSSTUDIO-3523 Bugfix: Use 'layoutBoundsWithoutScrollbars' instead of 'layoutBoundsWithScrollbars' in if-condition. --- .../builder/representation/javafx/JFXRepresentation.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/display/representation-javafx/src/main/java/org/csstudio/display/builder/representation/javafx/JFXRepresentation.java b/app/display/representation-javafx/src/main/java/org/csstudio/display/builder/representation/javafx/JFXRepresentation.java index 75bc3f2c12..079008048a 100644 --- a/app/display/representation-javafx/src/main/java/org/csstudio/display/builder/representation/javafx/JFXRepresentation.java +++ b/app/display/representation-javafx/src/main/java/org/csstudio/display/builder/representation/javafx/JFXRepresentation.java @@ -516,7 +516,7 @@ else if (scrollBar.isVisible() && scrollBar.getOrientation() == Orientation.VERT // correct width/height properties. final double zoomXWithoutScrollbars, zoomYWithoutScrollbars; final double zoomXWithScrollbars, zoomYWithScrollbars; - if (outline.getWidth() > layoutBoundsWithScrollbars.getWidth()) { + if (outline.getWidth() > layoutBoundsWithoutScrollbars.getWidth()) { zoomXWithoutScrollbars = layoutBoundsWithoutScrollbars.getWidth() / outline.getWidth(); zoomXWithScrollbars = layoutBoundsWithScrollbars.getWidth() / outline.getWidth(); } @@ -529,7 +529,7 @@ else if (model.propWidth().getValue() > 0) { zoomXWithScrollbars = 1.0; } - if (outline.getHeight() > layoutBoundsWithScrollbars.getHeight()) { + if (outline.getHeight() > layoutBoundsWithoutScrollbars.getHeight()) { zoomYWithoutScrollbars = layoutBoundsWithoutScrollbars.getHeight() / outline.getHeight(); zoomYWithScrollbars = layoutBoundsWithScrollbars.getHeight() / outline.getHeight(); }