Skip to content

Commit

Permalink
fix: getCellAtRelativePosition occor error
Browse files Browse the repository at this point in the history
  • Loading branch information
fangsmile committed Jun 17, 2024
1 parent 06ae84a commit cd66b1a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/vtable/src/core/utils/get-cell-position.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,9 @@ export function getCellAtRelativePosition(x: number, y: number, _this: BaseTable

const colInfo = getTargetColAtConsiderRightFrozen(rightFrozen ? x : x + _this.scrollLeft, rightFrozen, _this);
const rowInfo = getTargetRowAtConsiderBottomFrozen(bottomFrozen ? y : y + _this.scrollTop, bottomFrozen, _this);

if (!colInfo || !rowInfo) {
return undefined;
}
const { row, top, bottom, height } = rowInfo;
const { col, left, right, width } = colInfo;
const rect = {
Expand Down

0 comments on commit cd66b1a

Please sign in to comment.