Skip to content

Commit c829f97

Browse files
authored
Merge pull request #3518 from ControlSystemStudio/CSSTUDIO-3325
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
2 parents 9e6887a + 95629ca commit c829f97

File tree

1 file changed

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

1 file changed

+0
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,30 +138,26 @@ public void updateChanges()
138138
{
139139
case NONE:
140140
jfx_node.setPrefSize(width, height);
141-
jfx_node.setMinSize(Control.USE_PREF_SIZE, Control.USE_PREF_SIZE);
142141
jfx_node.setMaxSize(Control.USE_PREF_SIZE, Control.USE_PREF_SIZE);
143142
if (was_ever_transformed)
144143
jfx_node.getTransforms().clear();
145144
break;
146145
case NINETY:
147146
jfx_node.setPrefSize(height, width);
148-
jfx_node.setMinSize(Control.USE_PREF_SIZE, Control.USE_PREF_SIZE);
149147
jfx_node.setMaxSize(Control.USE_PREF_SIZE, Control.USE_PREF_SIZE);
150148
jfx_node.getTransforms().setAll(new Rotate(-rotation.getAngle()),
151149
new Translate(-height, 0));
152150
was_ever_transformed = true;
153151
break;
154152
case ONEEIGHTY:
155153
jfx_node.setPrefSize(width, height);
156-
jfx_node.setMinSize(Control.USE_PREF_SIZE, Control.USE_PREF_SIZE);
157154
jfx_node.setMaxSize(Control.USE_PREF_SIZE, Control.USE_PREF_SIZE);
158155
jfx_node.getTransforms().setAll(new Rotate(-rotation.getAngle()),
159156
new Translate(-width, -height));
160157
was_ever_transformed = true;
161158
break;
162159
case MINUS_NINETY:
163160
jfx_node.setPrefSize(height, width);
164-
jfx_node.setMinSize(Control.USE_PREF_SIZE, Control.USE_PREF_SIZE);
165161
jfx_node.setMaxSize(Control.USE_PREF_SIZE, Control.USE_PREF_SIZE);
166162
jfx_node.getTransforms().setAll(new Rotate(-rotation.getAngle()),
167163
new Translate(0, -width));

0 commit comments

Comments
 (0)