|
|
@@ -142,7 +142,13 @@ class ManualColumnResize extends BasePlugin {
|
|
|
|
|
|
this.currentTH = TH;
|
|
|
|
|
|
- const col = this.hot.view.wt.wtTable.getCoords(TH).col; // getCoords returns CellCoords
|
|
|
+ // const col = this.hot.view.wt.wtTable.getCoords(TH).col; // getCoords returns CellCoords
|
|
|
+ let col = 0;
|
|
|
+ TH.parentNode.children.forEach((element, index) => {
|
|
|
+ if (element === TH) col = index;
|
|
|
+ });
|
|
|
+ if (col > 0) col += -1;
|
|
|
+
|
|
|
const headerHeight = outerHeight(this.currentTH);
|
|
|
|
|
|
if (col >= 0) { // if not col header
|