Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -447,5 +447,14 @@ public void updateChanges()
}
}
}

if (jfx_node != null) {
jfx_node.layout();
}
for (Label label : labels) {
if (label != null) {
label.layout();
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -138,26 +138,30 @@ 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));
was_ever_transformed = true;
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));
was_ever_transformed = true;
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));
Expand Down