PL-8224 Table headers are shifted when Windows "Scale factor" is 125%

This commit is contained in:
Yuriy Artamonov 2016-11-30 20:25:27 +04:00
parent d79a3c37a9
commit c08b54f726
3 changed files with 23 additions and 0 deletions

View File

@ -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)) {

View File

@ -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()) {

View File

@ -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;
}
}