Skip to content

Commit

Permalink
Merge pull request #646 from ruilisi/610-textbreak-tb-makes-sheet-ver…
Browse files Browse the repository at this point in the history
…y-laggy-performance-issues-bug

Optimize inline textwrap processing
  • Loading branch information
sanchit3008 authored Dec 7, 2024
2 parents 408229d + b63bebf commit a97ea71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/modules/text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1649,6 +1649,8 @@ export function getCellTextInfo(
}

cumWordHeight += size.height;
// stop processing if rest of the cell isnt visible
if (cumWordHeight >= cellHeight) break;
}
}

Expand Down

0 comments on commit a97ea71

Please sign in to comment.