You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 19:11:41 +00:00
Set max value of inactive TextEdit scrolls to 0
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user