mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 05:06:45 +00:00
improve vertical layout sizing on transaction tabs
This commit is contained in:
parent
870a468584
commit
7b3e5f37b9
2 changed files with 8 additions and 3 deletions
|
@ -567,11 +567,15 @@ public class AppServices {
|
|||
|
||||
public static boolean isReducedWindowHeight() {
|
||||
Window activeWindow = getActiveWindow();
|
||||
return (activeWindow != null && activeWindow.getHeight() < 768);
|
||||
return (activeWindow != null && activeWindow.getHeight() < getReducedWindowHeight());
|
||||
}
|
||||
|
||||
public static boolean isReducedWindowHeight(Node node) {
|
||||
return (node.getScene() != null && node.getScene().getWindow().getHeight() < 768);
|
||||
return (node.getScene() != null && node.getScene().getWindow().getHeight() < getReducedWindowHeight());
|
||||
}
|
||||
|
||||
private static double getReducedWindowHeight() {
|
||||
return org.controlsfx.tools.Platform.getCurrent() == org.controlsfx.tools.Platform.WINDOWS ? 790d : 768d; //Windows includes menu bar of 22px
|
||||
}
|
||||
|
||||
public Application getApplication() {
|
||||
|
|
|
@ -224,11 +224,12 @@
|
|||
</Form>
|
||||
|
||||
<VBox fx:id="finalizeButtonBox" styleClass="signatures-buttons" GridPane.columnIndex="0" GridPane.columnSpan="2" GridPane.rowIndex="7">
|
||||
<Button fx:id="finalizeTransaction" graphicTextGap="5" text="Finalize Transaction for Signing" prefWidth="Infinity" defaultButton="true" onAction="#finalizeTransaction">
|
||||
<Button fx:id="finalizeTransaction" graphicTextGap="5" text="Finalize Transaction for Signing" prefWidth="Infinity" defaultButton="true" onAction="#finalizeTransaction" minHeight="52">
|
||||
<graphic>
|
||||
<Glyph fontFamily="Font Awesome 5 Free Solid" fontSize="10" icon="LOCK" />
|
||||
</graphic>
|
||||
</Button>
|
||||
<Region minHeight="14" />
|
||||
</VBox>
|
||||
|
||||
<Form fx:id="signaturesForm" GridPane.columnIndex="0" GridPane.columnSpan="2" GridPane.rowIndex="6">
|
||||
|
|
Loading…
Reference in a new issue