mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-16 07:16:27 -04:00
Use auto layout instead of manual sizing
This commit is contained in:
parent
094249a6fa
commit
09470eeb8a
@ -85,15 +85,11 @@ public class AccountPage extends StackPane implements DecoratorPage {
|
|||||||
AuthlibInjectorServer server = ((AuthlibInjectorAccount) account).getServer();
|
AuthlibInjectorServer server = ((AuthlibInjectorAccount) account).getServer();
|
||||||
lblServer.setText(server.getName());
|
lblServer.setText(server.getName());
|
||||||
installTooltip(lblServer, server.getUrl());
|
installTooltip(lblServer, server.getUrl());
|
||||||
FXUtils.setLimitHeight(this, 182);
|
|
||||||
} else {
|
} else {
|
||||||
componentList.removeChildren(paneServer);
|
componentList.removeChildren(paneServer);
|
||||||
|
|
||||||
if (account instanceof OfflineAccount) {
|
if (account instanceof OfflineAccount) {
|
||||||
componentList.removeChildren(paneEmail);
|
componentList.removeChildren(paneEmail);
|
||||||
FXUtils.setLimitHeight(this, 110);
|
|
||||||
} else {
|
|
||||||
FXUtils.setLimitHeight(this, 145);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,8 +77,6 @@
|
|||||||
</right>
|
</right>
|
||||||
</BorderPane>
|
</BorderPane>
|
||||||
</ComponentList>
|
</ComponentList>
|
||||||
|
|
||||||
</VBox>
|
|
||||||
<BorderPane pickOnBounds="false" style="-fx-padding: 4;">
|
<BorderPane pickOnBounds="false" style="-fx-padding: 4;">
|
||||||
<left>
|
<left>
|
||||||
<JFXButton BorderPane.alignment="BOTTOM_LEFT" fx:id="btnDelete" onMouseClicked="#onDelete"
|
<JFXButton BorderPane.alignment="BOTTOM_LEFT" fx:id="btnDelete" onMouseClicked="#onDelete"
|
||||||
@ -91,5 +89,6 @@
|
|||||||
prefWidth="30" prefHeight="30"/>
|
prefWidth="30" prefHeight="30"/>
|
||||||
</right>
|
</right>
|
||||||
</BorderPane>
|
</BorderPane>
|
||||||
|
</VBox>
|
||||||
<JFXProgressBar fx:id="progressBar" StackPane.alignment="TOP_CENTER" visible="false" />
|
<JFXProgressBar fx:id="progressBar" StackPane.alignment="TOP_CENTER" visible="false" />
|
||||||
</fx:root>
|
</fx:root>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user