Skip to content

Commit

Permalink
Merge pull request #91190 from kitbdev/dont-scroll-if-fit
Browse files Browse the repository at this point in the history
Don't use vscroll when fit to content height in TextEdit
  • Loading branch information
akien-mga committed Apr 26, 2024
2 parents 38d2928 + d9b0561 commit 1c584ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/gui/text_edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 1c584ec

Please sign in to comment.