Skip to content

Commit

Permalink
fix: table scale resize block wrong position when have horizontal scr…
Browse files Browse the repository at this point in the history
…ollbar (#49)
  • Loading branch information
zzxming authored Dec 19, 2024
1 parent 7f2a1c8 commit c8a72b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/table-resize/table-resize-scale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ export class TableResizeScale {
Object.assign(this.root.style, {
width: `${rootWidth}px`,
height: `${rootHeight}px`,
left: `${tableRect.x - editorRect.x - this.options.blockSize}px`,
top: `${tableRect.y - editorRect.y - this.options.blockSize}px`,
left: `${Math.max(tableRect.x, tableWrapperRect.x) - editorRect.x - this.options.blockSize}px`,
top: `${Math.max(tableRect.y, tableWrapperRect.y) - editorRect.y - this.options.blockSize}px`,
});
const blockStyle = {
left: `${tableRect.width + blockSize - scrollLeft}px`,
Expand Down

0 comments on commit c8a72b4

Please sign in to comment.