mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-09-19 20:44:36 -04:00
remove scrollbar on offer book chart view
This commit is contained in:
parent
b31d46bfcd
commit
0dc0fb0029
2 changed files with 2 additions and 12 deletions
|
@ -340,16 +340,6 @@ public class MainView extends InitializableView<StackPane, MainViewModel> {
|
|||
secondaryNavContainer.setPickOnBounds(false);
|
||||
secondaryNavContainer.getChildren().add(secondaryNav);
|
||||
|
||||
// if (rootContainer.getNodeOrientation() == NodeOrientation.LEFT_TO_RIGHT) {
|
||||
// log.warn("CENTERING RIGHT");
|
||||
// rightButtons.setAlignment(Pos.CENTER_RIGHT);
|
||||
// StackPane.setMargin(rightButtons, new Insets(5, 10, 0, 0));
|
||||
// } else {
|
||||
// rightButtons.setAlignment(Pos.CENTER_LEFT);
|
||||
// log.warn("CENTERING LEFT");
|
||||
// StackPane.setMargin(rightButtons, new Insets(5, 0, 0, 10));
|
||||
// }
|
||||
|
||||
AnchorPane contentContainer = new AnchorPane() {{
|
||||
getStyleClass().add("content-pane");
|
||||
setLeftAnchor(this, 0d);
|
||||
|
|
|
@ -107,7 +107,7 @@ public class OfferBookChartView extends ActivatableViewAndModel<VBox, OfferBookC
|
|||
private ListChangeListener<OfferBookListItem> changeListener;
|
||||
private ListChangeListener<CurrencyListItem> currencyListItemsListener;
|
||||
private final double dataLimitFactor = 3;
|
||||
private final double initialOfferTableViewHeight = 121;
|
||||
private final double initialOfferTableViewHeight = 88; // decrease as MainView's content-pane's top anchor increases
|
||||
private final Function<Double, Double> offerTableViewHeight = (screenSize) -> {
|
||||
// initial visible row count=5, header height=30
|
||||
double pixelsPerOfferTableRow = (initialOfferTableViewHeight - 30) / 5.0;
|
||||
|
@ -661,7 +661,7 @@ public class OfferBookChartView extends ActivatableViewAndModel<VBox, OfferBookC
|
|||
vBox.setPadding(new Insets(0, 0, 0, 0));
|
||||
vBox.setSpacing(10);
|
||||
vBox.setFillWidth(true);
|
||||
vBox.setMinHeight(190);
|
||||
//vBox.setMinHeight(190);
|
||||
vBox.getChildren().addAll(titleButtonBox, tableView);
|
||||
|
||||
return new Tuple4<>(tableView, vBox, button, titleLabel);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue