EditorAudioBus: expand effects list

(cherry picked from commit 555a8c0b8d)
This commit is contained in:
Poommetee Ketson 2018-03-02 18:51:47 +07:00 committed by Hein-Pieter van Braam
parent 2c93def09d
commit bf4d8ee69c

View file

@ -719,6 +719,7 @@ EditorAudioBus::EditorAudioBus(EditorAudioBuses *p_buses, bool p_is_master) {
effects->set_hide_root(true); effects->set_hide_root(true);
effects->set_custom_minimum_size(Size2(0, 100) * EDSCALE); effects->set_custom_minimum_size(Size2(0, 100) * EDSCALE);
effects->set_hide_folding(true); effects->set_hide_folding(true);
effects->set_v_size_flags(SIZE_EXPAND_FILL);
vb->add_child(effects); vb->add_child(effects);
effects->connect("item_edited", this, "_effect_edited"); effects->connect("item_edited", this, "_effect_edited");
effects->connect("cell_selected", this, "_effect_selected"); effects->connect("cell_selected", this, "_effect_selected");
@ -1151,6 +1152,7 @@ EditorAudioBuses::EditorAudioBuses() {
bus_scroll->set_enable_v_scroll(false); bus_scroll->set_enable_v_scroll(false);
add_child(bus_scroll); add_child(bus_scroll);
bus_hb = memnew(HBoxContainer); bus_hb = memnew(HBoxContainer);
bus_hb->set_v_size_flags(SIZE_EXPAND_FILL);
bus_scroll->add_child(bus_hb); bus_scroll->add_child(bus_hb);
save_timer = memnew(Timer); save_timer = memnew(Timer);