Fix cursor doesn't change when hanging on proxy settings

This commit is contained in:
yushijinhun
2018-10-03 21:41:22 +08:00
parent 4121921aca
commit 705a5659b6

View File

@@ -240,7 +240,6 @@ public abstract class SettingsView extends StackPane {
{ {
txtProxyHost = new JFXTextField(); txtProxyHost = new JFXTextField();
txtProxyHost.getStyleClass().setAll("fit-width");
GridPane.setRowIndex(txtProxyHost, 1); GridPane.setRowIndex(txtProxyHost, 1);
GridPane.setColumnIndex(txtProxyHost, 1); GridPane.setColumnIndex(txtProxyHost, 1);
gridPane.getChildren().add(txtProxyHost); gridPane.getChildren().add(txtProxyHost);
@@ -256,7 +255,6 @@ public abstract class SettingsView extends StackPane {
{ {
txtProxyPort = new JFXTextField(); txtProxyPort = new JFXTextField();
txtProxyPort.getStyleClass().setAll("fit-width");
GridPane.setRowIndex(txtProxyPort, 2); GridPane.setRowIndex(txtProxyPort, 2);
GridPane.setColumnIndex(txtProxyPort, 1); GridPane.setColumnIndex(txtProxyPort, 1);
FXUtils.setValidateWhileTextChanged(txtProxyPort, true); FXUtils.setValidateWhileTextChanged(txtProxyPort, true);
@@ -293,7 +291,6 @@ public abstract class SettingsView extends StackPane {
{ {
txtProxyUsername = new JFXTextField(); txtProxyUsername = new JFXTextField();
txtProxyUsername.getStyleClass().setAll("fit-width");
GridPane.setRowIndex(txtProxyUsername, 0); GridPane.setRowIndex(txtProxyUsername, 0);
GridPane.setColumnIndex(txtProxyUsername, 1); GridPane.setColumnIndex(txtProxyUsername, 1);
authPane.getChildren().add(txtProxyUsername); authPane.getChildren().add(txtProxyUsername);
@@ -308,7 +305,6 @@ public abstract class SettingsView extends StackPane {
{ {
txtProxyPassword = new JFXPasswordField(); txtProxyPassword = new JFXPasswordField();
txtProxyPassword.getStyleClass().setAll("fit-width");
GridPane.setRowIndex(txtProxyPassword, 1); GridPane.setRowIndex(txtProxyPassword, 1);
GridPane.setColumnIndex(txtProxyPassword, 1); GridPane.setColumnIndex(txtProxyPassword, 1);
authPane.getChildren().add(txtProxyPassword); authPane.getChildren().add(txtProxyPassword);