mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-07 06:02:33 -04:00
Remove Anchorpane in OrderBookView
This commit is contained in:
parent
3b5a59ac55
commit
7dc8d66614
2 changed files with 112 additions and 119 deletions
|
@ -24,14 +24,9 @@
|
|||
<?import javafx.scene.control.*?>
|
||||
<?import javafx.scene.layout.*?>
|
||||
<?import javafx.scene.text.*?>
|
||||
<AnchorPane fx:id="root" fx:controller="io.bitsquare.gui.main.trade.orderbook.OrderBookViewCB"
|
||||
AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0"
|
||||
AnchorPane.topAnchor="0.0"
|
||||
<GridPane fx:id="root" fx:controller="io.bitsquare.gui.main.trade.orderbook.OrderBookViewCB"
|
||||
hgap="5.0" vgap="0"
|
||||
xmlns:fx="http://javafx.com/fxml">
|
||||
|
||||
<GridPane fx:id="gridPane" hgap="5.0" vgap="0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0"
|
||||
AnchorPane.rightAnchor="0.0"
|
||||
AnchorPane.topAnchor="0.0">
|
||||
<padding>
|
||||
<Insets bottom="20.0" left="25.0" top="30.0" right="25"/>
|
||||
</padding>
|
||||
|
@ -159,4 +154,3 @@
|
|||
</rowConstraints>
|
||||
|
||||
</GridPane>
|
||||
</AnchorPane>
|
||||
|
|
|
@ -85,7 +85,6 @@ public class OrderBookViewCB extends CachedViewCB<OrderBookPM> {
|
|||
private ImageView expand;
|
||||
private ImageView collapse;
|
||||
|
||||
@FXML private GridPane gridPane;
|
||||
@FXML private CheckBox extendedCheckBox;
|
||||
@FXML private Label amountBtcLabel, priceDescriptionLabel, priceFiatLabel, volumeDescriptionLabel,
|
||||
volumeFiatLabel, extendedButton1Label, extendedButton2Label, extendedCheckBoxLabel;
|
||||
|
@ -342,7 +341,7 @@ public class OrderBookViewCB extends CachedViewCB<OrderBookPM> {
|
|||
}
|
||||
|
||||
private void toggleDetailsScreen(boolean visible) {
|
||||
gridPane.setVgap(visible ? 5 : 0);
|
||||
((GridPane) root).setVgap(visible ? 5 : 0);
|
||||
|
||||
extendedButton1Label.setVisible(visible);
|
||||
extendedButton1Label.setManaged(visible);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue