Skip to content

Commit

Permalink
fix 最右侧选中样式有边框补齐报错
Browse files Browse the repository at this point in the history
  • Loading branch information
栾华亮 committed Nov 14, 2020
1 parent 886d192 commit e518943
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Scroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ class Scroller {
painter,
selector,
autofill,
fixedRight
verticalScrollerSize
} = this.grid
const cell = this.grid.getCell(autofill.xIndex, autofill.yIndex)
const x =
Expand All @@ -367,7 +367,7 @@ class Scroller {
}

// 最右侧
if (maxX === range.maxX - fixedRight && width === tableWidth + scrollX + SCROLLER_TRACK_SIZE) {
if (maxX === range.maxX && (!cell.fixed && width === tableWidth + scrollX + SCROLLER_TRACK_SIZE || cell.fixed === 'right')) {
const minCell = this.grid.getCell(maxX, minY)
const maxCell = this.grid.getCell(maxX, maxY)
const diffY = maxCell.y - minCell.y
Expand Down

0 comments on commit e518943

Please sign in to comment.