Merge pull request #91190 from kitbdev/dont-scroll-if-fit

Don't use vscroll when fit to content height in TextEdit
This commit is contained in:
Rémi Verschelde 2024-04-26 15:13:40 +02:00
commit 1c584ec9e0
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -7491,7 +7491,7 @@ void TextEdit::_update_scrollbars() {
updating_scrolls = true;
if (total_rows > visible_rows) {
if (!fit_content_height && total_rows > visible_rows) {
v_scroll->show();
v_scroll->set_max(total_rows + _get_visible_lines_offset());
v_scroll->set_page(visible_rows + _get_visible_lines_offset());