This commit is contained in:
huanghongxun
2021-09-09 01:18:50 +08:00
parent 71a845c1ed
commit 279b2d6f80

View File

@@ -187,7 +187,9 @@ public class DecoratorSkin extends SkinBase<Decorator> {
s.isAnimate() ? Duration.millis(160) : null, leftPane.prefWidthProperty(), null, container.getWidth(), FXUtils.SINE);
if (animation != null) {
animation.setOnFinished(action -> {
if (animation.getStatus() != Animation.Status.STOPPED) {
leftPane.prefWidthProperty().bind(container.widthProperty());
}
});
}
}