Remove Anchorpane in OrderBookView

This commit is contained in:
Manfred Karrer 2014-09-15 02:15:50 +02:00
parent 3b5a59ac55
commit 7dc8d66614
2 changed files with 112 additions and 119 deletions

View file

@ -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>
@ -158,5 +153,4 @@
<RowConstraints/>
</rowConstraints>
</GridPane>
</AnchorPane>
</GridPane>

View file

@ -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);