From 86aa078f10f67ce15a722422214dd4d6f24832b2 Mon Sep 17 00:00:00 2001 From: axel1200 Date: Sun, 26 Nov 2017 14:30:48 +0100 Subject: [PATCH 01/14] Removed minheight in constraints, they caused unwanted behaviour with textfields, anyway they were not needed --- .../com/faforever/moderatorclient/ui/LoginController.java | 2 ++ src/main/resources/ui/login.fxml | 8 ++------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/faforever/moderatorclient/ui/LoginController.java b/src/main/java/com/faforever/moderatorclient/ui/LoginController.java index d2a4247..088b50b 100644 --- a/src/main/java/com/faforever/moderatorclient/ui/LoginController.java +++ b/src/main/java/com/faforever/moderatorclient/ui/LoginController.java @@ -22,6 +22,7 @@ public class LoginController implements Controller { public LoginController(FafApiCommunicationService fafApiCommunicationService) { this.fafApiCommunicationService = fafApiCommunicationService; + } @Override @@ -31,6 +32,7 @@ public Pane getRoot() { @FXML public void initialize() { + errorMessageLabel.managedProperty().bind(errorMessageLabel.visibleProperty()); errorMessageLabel.setVisible(false); } diff --git a/src/main/resources/ui/login.fxml b/src/main/resources/ui/login.fxml index 15ae24f..949d8e7 100644 --- a/src/main/resources/ui/login.fxml +++ b/src/main/resources/ui/login.fxml @@ -6,7 +6,7 @@ - @@ -15,11 +15,7 @@ - - - - - +