diff --git a/src/TableHeader.js b/src/TableHeader.js index 2b91f17..618fda6 100644 --- a/src/TableHeader.js +++ b/src/TableHeader.js @@ -229,7 +229,7 @@ class TableHeader extends Component { const newTableWidth = this.drag.tableWidth + diff +'px'; this.table.table.style.width = newTableWidth;//改变table的width this.table.innerTableBody.style.width = newTableWidth ; - let showScroll = contentDomWidth - newTableWidth - scrollbarWidth ; + let showScroll = contentDomWidth - (this.drag.tableWidth + diff) - scrollbarWidth ; //表头滚动条处理 if(headerScroll){