Skip to content

Commit

Permalink
fix: the grid rendering issues during collaboration (teableio#765)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sky-FE authored and AliceLanniste committed Sep 1, 2024
1 parent 397043a commit d93ad36
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -704,10 +704,6 @@ export const drawCollaborators = (ctx: CanvasRenderingContext2D, props: ILayoutD
const { scrollTop, scrollLeft } = scrollState;
const { themeKey } = theme;

// const { fontFamily, avatarBg, avatarTextColor, avatarSizeXS, fontSizeXXS, scrollBarBg } = theme;
// const avatarOffset = 4;
// const cellOffset = 1;

const { freezeColumnCount, freezeRegionWidth, rowInitSize, containerWidth, containerHeight } =
coordInstance;

Expand All @@ -722,7 +718,7 @@ export const drawCollaborators = (ctx: CanvasRenderingContext2D, props: ILayoutD
const conflictCollaborators = visibleCells[i].sort((a, b) => b.timeStamp - a.timeStamp);
const { activeCell, borderColor } = conflictCollaborators[0];
if (!activeCell) {
return;
continue;
}
const [columnIndex, _rowIndex] = activeCell;
const rowIndex = real2RowIndex(_rowIndex);
Expand Down

0 comments on commit d93ad36

Please sign in to comment.