Skip to content

Commit

Permalink
Set max value of inactive TextEdit scrolls to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
KoBeWi committed Jan 9, 2022
1 parent 5a61822 commit 892d937
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scene/gui/text_edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5949,6 +5949,7 @@ void TextEdit::_update_scrollbars() {
caret.line_ofs = 0;
caret.wrap_ofs = 0;
v_scroll->set_value(0);
v_scroll->set_max(0);
v_scroll->hide();
}

Expand All @@ -5966,6 +5967,7 @@ void TextEdit::_update_scrollbars() {
} else {
caret.x_ofs = 0;
h_scroll->set_value(0);
h_scroll->set_max(0);
h_scroll->hide();
}

Expand Down

0 comments on commit 892d937

Please sign in to comment.