mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix ThemeEditor being too wide for small screen or minimized window
This commit is contained in:
parent
fde0616a0e
commit
84e1ed8884
2 changed files with 3 additions and 2 deletions
|
|
@ -3796,9 +3796,10 @@ ThemeEditor::ThemeEditor() {
|
|||
main_hs->set_v_size_flags(SIZE_EXPAND_FILL);
|
||||
add_child(main_hs);
|
||||
|
||||
main_hs->set_split_offset(520 * EDSCALE);
|
||||
|
||||
VBoxContainer *preview_tabs_vb = memnew(VBoxContainer);
|
||||
preview_tabs_vb->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
preview_tabs_vb->set_custom_minimum_size(Size2(520, 0) * EDSCALE);
|
||||
preview_tabs_vb->add_theme_constant_override("separation", 2 * EDSCALE);
|
||||
main_hs->add_child(preview_tabs_vb);
|
||||
HBoxContainer *preview_tabbar_hb = memnew(HBoxContainer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue