panel shape is right

This commit is contained in:
woodser 2025-05-13 20:33:12 -04:00
parent 48ee2d269c
commit 2605cb11c4
No known key found for this signature in database
GPG key ID: 55A10DD48ADEE5EF
2 changed files with 7 additions and 3 deletions

View file

@ -428,7 +428,7 @@ public class OfferBookChartView extends ActivatableViewAndModel<VBox, OfferBookC
private Tuple4<TableView<OfferListItem>, VBox, Button, Label> getOfferTable(OfferDirection direction) { private Tuple4<TableView<OfferListItem>, VBox, Button, Label> getOfferTable(OfferDirection direction) {
TableView<OfferListItem> tableView = new TableView<>(); TableView<OfferListItem> tableView = new TableView<>();
GUIUtil.applyTableStyle(tableView); GUIUtil.applyTableStyle(tableView, false);
tableView.setMinHeight(initialOfferTableViewHeight); tableView.setMinHeight(initialOfferTableViewHeight);
tableView.setPrefHeight(initialOfferTableViewHeight); tableView.setPrefHeight(initialOfferTableViewHeight);
tableView.setMinWidth(480); tableView.setMinWidth(480);

View file

@ -1085,7 +1085,11 @@ public class GUIUtil {
} }
public static void applyTableStyle(TableView<?> tableView) { public static void applyTableStyle(TableView<?> tableView) {
applyRoundedArc(tableView); applyTableStyle(tableView, true);
}
public static void applyTableStyle(TableView<?> tableView, boolean applyRoundedArc) {
if (applyRoundedArc) applyRoundedArc(tableView);
applyEdgeColumnStyleClasses(tableView); applyEdgeColumnStyleClasses(tableView);
} }
@ -1100,7 +1104,7 @@ public class GUIUtil {
}); });
} }
public static <T> void applyEdgeColumnStyleClasses(TableView<T> tableView) { private static <T> void applyEdgeColumnStyleClasses(TableView<T> tableView) {
ListChangeListener<TableColumn<T, ?>> columnListener = change -> { ListChangeListener<TableColumn<T, ?>> columnListener = change -> {
updateEdgeColumnStyleClasses(tableView); updateEdgeColumnStyleClasses(tableView);
}; };