mirror of
https://github.com/ruilisi/fortune-sheet.git
synced 2025-01-07 03:16:50 +08:00
optimize inline textwrap processing
This commit is contained in:
parent
408229dae9
commit
b63bebf9c6
@ -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