We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4d3714 commit a8aabe9Copy full SHA for a8aabe9
1 file changed
src/main/components/table/UITable.tsx
@@ -624,11 +624,12 @@ const UITable: FC<TableProps & IExtendableTable & IComponentConstants> = (props)
624
if (currentTable) {
625
const theader = currentTable.querySelectorAll('th');
626
let clearPrimeWidths = false;
627
+ const padding = getTableHeadHorizontalPadding();
628
for (let i = 0; i < theader.length; i++) {
629
const col = columnWidths[i];
630
let w = col.width as any;
631
if (props.autoResize === false) {
- w = col.widthPreSet ? `${w}px` : null;
632
+ w = col.widthPreSet ? `${w - padding}px` : null;
633
if(col.widthPreSet) clearPrimeWidths = true;
634
} else {
635
w = `${Math.round(100 * w / estTableWidth)}%`;
0 commit comments