Removed unneeded ScrollContainer form PaintProjectToolsPropertyInspector.

This commit is contained in:
Relintai 2022-11-20 15:59:38 +01:00
parent 6ad8f67551
commit 5514c64c86

View File

@ -65,14 +65,9 @@ PaintProjectToolsPropertyInspector::PaintProjectToolsPropertyInspector() {
VBoxContainer *main_container = memnew(VBoxContainer); VBoxContainer *main_container = memnew(VBoxContainer);
add_child(main_container); add_child(main_container);
ScrollContainer *scroll_container = memnew(ScrollContainer);
scroll_container->set_custom_minimum_size(Size2(0, 145));
scroll_container->set_enable_h_scroll(false);
main_container->add_child(scroll_container);
_button_contianer = memnew(HFlowContainer); _button_contianer = memnew(HFlowContainer);
scroll_container->add_child(_button_contianer); main_container->add_child(_button_contianer);
_button_contianer->set_h_size_flags(SIZE_EXPAND_FILL); //_button_contianer->set_h_size_flags(SIZE_EXPAND_FILL);
_button_contianer->set_v_size_flags(SIZE_EXPAND_FILL); _button_contianer->set_v_size_flags(SIZE_EXPAND_FILL);
//Button *button = memnew(Button); //Button *button = memnew(Button);