mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-04 04:07:42 +08:00
PL-8224 Table headers are shifted when Windows "Scale factor" is 125%
This commit is contained in:
parent
d79a3c37a9
commit
c08b54f726
@ -239,6 +239,15 @@ public class CubaScrollTableWidget extends VScrollTable implements ShortcutActio
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void forceReassignColumnWidths() {
|
||||
int visibleCellCount = tHead.getVisibleCellCount();
|
||||
for (int i = 0; i < visibleCellCount; i++) {
|
||||
HeaderCell hcell = tHead.getHeaderCell(i);
|
||||
reassignHeaderCellWidth(i, hcell, hcell.getMinWidth());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void reassignHeaderCellWidth(int colIndex, HeaderCell hcell, int minWidth) {
|
||||
if (isCustomColumn(colIndex)) {
|
||||
|
@ -373,6 +373,15 @@ public class CubaTreeTableWidget extends VTreeTable implements ShortcutActionHan
|
||||
return rowRequestHandler;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void forceReassignColumnWidths() {
|
||||
int visibleCellCount = tHead.getVisibleCellCount();
|
||||
for (int i = 0; i < visibleCellCount; i++) {
|
||||
HeaderCell hcell = tHead.getHeaderCell(i);
|
||||
reassignHeaderCellWidth(i, hcell, hcell.getMinWidth());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void reassignHeaderCellWidth(int colIndex, HeaderCell hcell, int minWidth) {
|
||||
for (Widget rowWidget : ((CubaTreeTableWidget.CubaTreeTableBody) scrollBody).getRenderedRows()) {
|
||||
|
@ -256,4 +256,9 @@
|
||||
margin-top: -1 * ($v-unit-size + ceil($v-layout-spacing-vertical));
|
||||
}
|
||||
}
|
||||
|
||||
.v-ff & .v-table-header tr > .c-grouptable-group-divider-header:first-child .v-table-caption-container {
|
||||
padding-left: 8px;
|
||||
border-left: 0;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user