Skip to content

Commit

Permalink
Don't use vscroll when fit to content height in TextEdit
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbdev committed Apr 25, 2024
1 parent 11d3768 commit d9b0561
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 d9b0561

Please sign in to comment.