mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-02 11:17:40 +08:00
GroupTable columns are misaligned in case of aggregatable table #684
This commit is contained in:
parent
8dfa69ca97
commit
2fb1a60cbf
@ -147,8 +147,18 @@ public class TableWidgetDelegate {
|
||||
if (tableWidget.getRenderedRows().isEmpty() &&
|
||||
aggregationRow != null && aggregationRow.isInitialized()) {
|
||||
double realColWidth = aggregationRow.getRealCellWidth(colIndex);
|
||||
if (realColWidth > 0) {
|
||||
updateHeaderCellWidth(hCell, minWidth, realColWidth);
|
||||
if (!Double.isNaN(realColWidth)) {
|
||||
if (realColWidth > 0) {
|
||||
updateHeaderCellWidth(hCell, minWidth, realColWidth);
|
||||
}
|
||||
} else {
|
||||
// schedule reassigning in case of empty table grouping due to aggregation row is not displayed yet
|
||||
Scheduler.get().scheduleDeferred(() -> {
|
||||
double rcw = aggregationRow.getRealCellWidth(colIndex);
|
||||
if (rcw > 0) {
|
||||
updateHeaderCellWidth(hCell, minWidth, rcw);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user