mirror of
https://github.com/ruilisi/fortune-sheet.git
synced 2025-01-07 03:16:50 +08:00
Merge pull request #646 from ruilisi/610-textbreak-tb-makes-sheet-very-laggy-performance-issues-bug
Optimize inline textwrap processing
This commit is contained in:
commit
a97ea71ad9
@ -1649,6 +1649,8 @@ export function getCellTextInfo(
|
||||
}
|
||||
|
||||
cumWordHeight += size.height;
|
||||
// stop processing if rest of the cell isnt visible
|
||||
if (cumWordHeight >= cellHeight) break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user