From 279b2d6f80168777e10cf576e6156fd57356c793 Mon Sep 17 00:00:00 2001 From: huanghongxun Date: Thu, 9 Sep 2021 01:18:50 +0800 Subject: [PATCH] fix: #1002. --- .../java/org/jackhuang/hmcl/ui/decorator/DecoratorSkin.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/DecoratorSkin.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/DecoratorSkin.java index 4cc551613..29320a3d2 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/DecoratorSkin.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/decorator/DecoratorSkin.java @@ -187,7 +187,9 @@ public class DecoratorSkin extends SkinBase { s.isAnimate() ? Duration.millis(160) : null, leftPane.prefWidthProperty(), null, container.getWidth(), FXUtils.SINE); if (animation != null) { animation.setOnFinished(action -> { - leftPane.prefWidthProperty().bind(container.widthProperty()); + if (animation.getStatus() != Animation.Status.STOPPED) { + leftPane.prefWidthProperty().bind(container.widthProperty()); + } }); } }