From 3357aa6a4f4c1a92673ec736abd6f1522412b74d Mon Sep 17 00:00:00 2001 From: liwen Date: Fri, 6 Nov 2020 15:42:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=99=BB=E5=BD=95=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fx/client/gui/uicomponents/login/LoginController.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/src/main/java/com/epri/fx/client/gui/uicomponents/login/LoginController.java b/client/src/main/java/com/epri/fx/client/gui/uicomponents/login/LoginController.java index b9879c2..1e5aa50 100644 --- a/client/src/main/java/com/epri/fx/client/gui/uicomponents/login/LoginController.java +++ b/client/src/main/java/com/epri/fx/client/gui/uicomponents/login/LoginController.java @@ -171,6 +171,8 @@ public class LoginController { registeredPane.visibleProperty().bind( Bindings.when(angleProperty.lessThan(0)).then(true).otherwise(false)); loginPane.visibleProperty().bind(registeredPane.visibleProperty().not()); + loginPane.managedProperty().bind(loginPane.visibleProperty()); + registeredPane.managedProperty().bind(registeredPane.visibleProperty()); initAnimation(); loadingImage(); @@ -200,7 +202,7 @@ public class LoginController { KeyFrame frame1 = new KeyFrame(Duration.ZERO, new KeyValue(angleProperty, Math.PI / 2, Interpolator.LINEAR)); - KeyFrame frame2 = new KeyFrame(Duration.seconds(0.5), + KeyFrame frame2 = new KeyFrame(Duration.seconds(0.7), new EventHandler() { @Override public void handle(Event event) { @@ -210,7 +212,7 @@ public class LoginController { }, new KeyValue(angleProperty, -Math.PI / 2, Interpolator.LINEAR)); - KeyFrame frame3 = new KeyFrame(Duration.seconds(0.5), new EventHandler() { + KeyFrame frame3 = new KeyFrame(Duration.seconds(.7), new EventHandler() { @Override public void handle(Event event) { loginPane.setEffect(null);