1
0
Fork 0

Merge pull request #101175 from wareya/wrap_perf_fix

Fix large `TextEdit` width resize performance when wrapping disabled
This commit is contained in:
Rémi Verschelde 2025-01-09 13:50:46 +01:00
commit ef9f0aefd0
1 changed files with 5 additions and 4 deletions

View File

@ -7955,12 +7955,13 @@ void TextEdit::_update_wrap_at_column(bool p_force) {
}
text.set_brk_flags(autowrap_flags);
text.set_width(wrap_at_column);
} else {
text.invalidate_all_lines();
_update_placeholder();
} else if (text.get_width() != -1) {
text.set_width(-1);
text.invalidate_all_lines();
_update_placeholder();
}
text.invalidate_all_lines();
_update_placeholder();
}
// Update viewport.