Skip to content

Commit

Permalink
Make sure the border-related calculations use the lowest header level.
Browse files Browse the repository at this point in the history
  • Loading branch information
jansiegel committed Mar 30, 2018
1 parent 00f3d2d commit a8ef24f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/3rdparty/walkontable/src/border.js
Original file line number Diff line number Diff line change
Expand Up @@ -554,8 +554,10 @@ class Border {
}

if (rootHotElement.className.includes(entireSelectionClassname)) {
startHeader = getHeaderFn(fromIndex, 0);
endHeader = getHeaderFn(toIndex, 0);
const columnHeaderLevelCount = this.wot.getSetting('columnHeaders').length;

startHeader = getHeaderFn(fromIndex, columnHeaderLevelCount - 1);
endHeader = getHeaderFn(toIndex, columnHeaderLevelCount - 1);

if (!startHeader || !endHeader) {
return false;
Expand Down

0 comments on commit a8ef24f

Please sign in to comment.