Set max value of inactive TextEdit scrolls to 0
(cherry picked from commit 892d93759c
)
This commit is contained in:
parent
a28955ac46
commit
9f7f7377dd
@ -382,6 +382,7 @@ void TextEdit::_update_scrollbars() {
|
||||
cursor.line_ofs = 0;
|
||||
cursor.wrap_ofs = 0;
|
||||
v_scroll->set_value(0);
|
||||
v_scroll->set_max(0);
|
||||
v_scroll->hide();
|
||||
}
|
||||
|
||||
@ -399,6 +400,7 @@ void TextEdit::_update_scrollbars() {
|
||||
} else {
|
||||
cursor.x_ofs = 0;
|
||||
h_scroll->set_value(0);
|
||||
h_scroll->set_max(0);
|
||||
h_scroll->hide();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user