fix: javafx bound property

This commit is contained in:
huanghongxun
2021-09-02 02:44:30 +08:00
parent 5d7c9cd15d
commit b3d083877f
2 changed files with 6 additions and 1 deletions

View File

@@ -178,8 +178,8 @@ public class DecoratorSkin extends SkinBase<Decorator> {
navBarPane.getChildren().setAll(node);
}
leftPane.prefWidthProperty().unbind();
if (s.getLeftPaneWidth() >= 0) {
leftPane.prefWidthProperty().unbind();
FXUtils.playAnimation(leftPane, "animation",
s.isAnimate() ? Duration.millis(160) : null, leftPane.prefWidthProperty(), null, s.getLeftPaneWidth(), FXUtils.SINE);
} else {