Gives the theme editor a horizontal scrollbar

Fixes #34509 where the theme editor would push away the inspector
if something like "hseperation" is really high.
Now `set_enable_h_scroll` is true which fixes this.

(cherry picked from commit d602be077d)
This commit is contained in:
Lunatoid 2020-08-26 01:48:46 +02:00 committed by Rémi Verschelde
parent 96ad9dc4c6
commit 636fe1bab9
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -634,7 +634,7 @@ ThemeEditor::ThemeEditor() {
ScrollContainer *scroll = memnew(ScrollContainer);
add_child(scroll);
scroll->set_enable_v_scroll(true);
scroll->set_enable_h_scroll(false);
scroll->set_enable_h_scroll(true);
scroll->set_v_size_flags(SIZE_EXPAND_FILL);
MarginContainer *root_container = memnew(MarginContainer);