Web: Components: fixed TableHeaderCell clickability
This commit is contained in:
parent
fc4d1d58d8
commit
c45bb4acc0
@ -121,11 +121,11 @@ class TableHeader extends React.Component {
|
|||||||
const defaultColumn = document.getElementById("column_" + colIndex);
|
const defaultColumn = document.getElementById("column_" + colIndex);
|
||||||
if (!defaultColumn || defaultColumn.dataset.defaultSize) return;
|
if (!defaultColumn || defaultColumn.dataset.defaultSize) return;
|
||||||
|
|
||||||
const handleOffset = 1;
|
const handleOffset = 8;
|
||||||
|
|
||||||
if (column2Width + offset >= defaultMinColumnSize) {
|
if (column2Width + offset >= defaultMinColumnSize) {
|
||||||
widths[+columnIndex] = newWidth - handleOffset + "px";
|
widths[+columnIndex] = newWidth + handleOffset + "px";
|
||||||
widths[colIndex] = column2Width + offset + handleOffset + "px";
|
widths[colIndex] = column2Width + offset - handleOffset + "px";
|
||||||
} else {
|
} else {
|
||||||
if (colIndex === this.props.columns.length) return false;
|
if (colIndex === this.props.columns.length) return false;
|
||||||
return this.moveToRight(widths, newWidth, colIndex + 1);
|
return this.moveToRight(widths, newWidth, colIndex + 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user