From 95629ca0d174aa7f702ea50824b9e0de256d0d65 Mon Sep 17 00:00:00 2001 From: Abraham Wolk Date: Fri, 22 Aug 2025 14:29:38 +0200 Subject: [PATCH] CSSTUDIO-3325 Bugfix: Make labels of Byte Monitor widget visible when placed alongside a Label widget inside of a tab of a Navigation Tabs widget. --- .../representation/javafx/widgets/LabelRepresentation.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/display/representation-javafx/src/main/java/org/csstudio/display/builder/representation/javafx/widgets/LabelRepresentation.java b/app/display/representation-javafx/src/main/java/org/csstudio/display/builder/representation/javafx/widgets/LabelRepresentation.java index 3585156e5d..e65e4d4a89 100644 --- a/app/display/representation-javafx/src/main/java/org/csstudio/display/builder/representation/javafx/widgets/LabelRepresentation.java +++ b/app/display/representation-javafx/src/main/java/org/csstudio/display/builder/representation/javafx/widgets/LabelRepresentation.java @@ -138,14 +138,12 @@ public void updateChanges() { case NONE: jfx_node.setPrefSize(width, height); - jfx_node.setMinSize(Control.USE_PREF_SIZE, Control.USE_PREF_SIZE); jfx_node.setMaxSize(Control.USE_PREF_SIZE, Control.USE_PREF_SIZE); if (was_ever_transformed) jfx_node.getTransforms().clear(); break; case NINETY: jfx_node.setPrefSize(height, width); - jfx_node.setMinSize(Control.USE_PREF_SIZE, Control.USE_PREF_SIZE); jfx_node.setMaxSize(Control.USE_PREF_SIZE, Control.USE_PREF_SIZE); jfx_node.getTransforms().setAll(new Rotate(-rotation.getAngle()), new Translate(-height, 0)); @@ -153,7 +151,6 @@ public void updateChanges() break; case ONEEIGHTY: jfx_node.setPrefSize(width, height); - jfx_node.setMinSize(Control.USE_PREF_SIZE, Control.USE_PREF_SIZE); jfx_node.setMaxSize(Control.USE_PREF_SIZE, Control.USE_PREF_SIZE); jfx_node.getTransforms().setAll(new Rotate(-rotation.getAngle()), new Translate(-width, -height)); @@ -161,7 +158,6 @@ public void updateChanges() break; case MINUS_NINETY: jfx_node.setPrefSize(height, width); - jfx_node.setMinSize(Control.USE_PREF_SIZE, Control.USE_PREF_SIZE); jfx_node.setMaxSize(Control.USE_PREF_SIZE, Control.USE_PREF_SIZE); jfx_node.getTransforms().setAll(new Rotate(-rotation.getAngle()), new Translate(0, -width));