Skip to content

Commit

Permalink
Merge pull request #56637 from KoBeWi/maxxxxxxcroll
Browse files Browse the repository at this point in the history
Set max value of inactive TextEdit scrolls to 0
  • Loading branch information
akien-mga authored Jan 10, 2022
2 parents b3513cf + 892d937 commit b52f90e
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 b52f90e

Please sign in to comment.