Skip to content

Commit 1c584ec

Browse files
committed
Merge pull request godotengine#91190 from kitbdev/dont-scroll-if-fit
Don't use vscroll when fit to content height in TextEdit
2 parents 38d2928 + d9b0561 commit 1c584ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scene/gui/text_edit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7491,7 +7491,7 @@ void TextEdit::_update_scrollbars() {
74917491

74927492
updating_scrolls = true;
74937493

7494-
if (total_rows > visible_rows) {
7494+
if (!fit_content_height && total_rows > visible_rows) {
74957495
v_scroll->show();
74967496
v_scroll->set_max(total_rows + _get_visible_lines_offset());
74977497
v_scroll->set_page(visible_rows + _get_visible_lines_offset());

0 commit comments

Comments
 (0)