Skip to content

Commit 34d8838

Browse files
committed
CSSTUDIO-3341 Move comment to correct place.
1 parent ca594a3 commit 34d8838

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,7 @@ else if (zoom == ZOOM_HEIGHT) {
574574
}
575575
}
576576
else {
577+
// Assume ZOOM_ALL
577578
if (zoom_y_without_scrollbars_rounded * model.propWidth().getValue() > layoutBoundsWithoutScrollbars.getWidth() ||
578579
zoom_x_without_scrollbars_rounded * model.propHeight().getValue() > layoutBoundsWithoutScrollbars.getHeight()) {
579580
// Setting zoom_to_set to 'Math.min(zoom_x_without_scrollbars_rounded, zoom_y_with_scrollbars_rounded)'
@@ -582,7 +583,7 @@ else if (zoom == ZOOM_HEIGHT) {
582583
zoom_to_set = Math.min(zoom_x_with_scrollbars_rounded, zoom_y_with_scrollbars_rounded); // Assume ZOOM_ALL
583584
}
584585
else {
585-
zoom_to_set = Math.min(zoom_x_without_scrollbars_rounded, zoom_y_without_scrollbars_rounded); // Assume ZOOM_ALL
586+
zoom_to_set = Math.min(zoom_x_without_scrollbars_rounded, zoom_y_without_scrollbars_rounded);
586587
}
587588
}
588589
}

0 commit comments

Comments
 (0)