Skip to content

Commit

Permalink
Merge pull request #2501 from axpoems/fix-scroll-issue-open-trades
Browse files Browse the repository at this point in the history
Fix horizontal scroll issue in My Open Trades page
  • Loading branch information
djing-chan authored Jul 28, 2024
2 parents a69558c + 85e316f commit 6f0f15a
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,10 @@ public BisqEasyOpenTradesView(BisqEasyOpenTradesModel model,
tableView.getStyleClass().addAll("bisq-easy-open-trades", "hide-horizontal-scrollbar");
configTableView();

VBox.setMargin(tableView, new Insets(10, 0, 0, 0));
Triple<Label, HBox, VBox> triple = BisqEasyViewUtils.getContainer(Res.get("bisqEasy.openTrades.table.headline"), tableView);
ScrollPane scrollPane = new ScrollPane(tableView);
scrollPane.setFitToWidth(true);
scrollPane.setFitToHeight(true);
Triple<Label, HBox, VBox> triple = BisqEasyViewUtils.getContainer(Res.get("bisqEasy.openTrades.table.headline"), scrollPane);
VBox tableViewVBox = triple.getThird();

// ChatBox
Expand Down Expand Up @@ -131,7 +133,7 @@ protected void configTitleHBox() {

@Override
protected void configCenterVBox() {
centerVBox.setAlignment(Pos.CENTER);
centerVBox.setAlignment(Pos.TOP_CENTER);
centerVBox.setFillWidth(true);
}

Expand Down Expand Up @@ -175,6 +177,7 @@ protected void onViewAttached() {
tableView.setPlaceholderText(Res.get("bisqEasy.openTrades.noTrades"));
tableView.allowVerticalScrollbar();
tableView.setFixHeight(150);
tableView.setMinWidth(500);
tableView.getStyleClass().add("empty-table");
} else {
tableView.setPlaceholder(null);
Expand Down

0 comments on commit 6f0f15a

Please sign in to comment.