1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

-Completely removed EmptyControl (but added fallback), closes #1017

This commit is contained in:
Juan Linietsky
2015-01-03 17:24:16 -03:00
parent 0e1d70f637
commit dc7ac86b79
13 changed files with 35 additions and 35 deletions

View File

@@ -2909,11 +2909,11 @@ void AnimationKeyEditor::set_anim_pos(float p_pos) {
void AnimationKeyEditor::_pane_drag(const Point2& p_delta) {
Size2 ecs = ec->get_minsize();
Size2 ecs = ec->get_custom_minimum_size();
ecs.y-=p_delta.y;
if (ecs.y<100)
ecs.y=100;
ec->set_minsize(ecs);;
ec->set_custom_minimum_size(ecs);;
}
@@ -3296,8 +3296,8 @@ AnimationKeyEditor::AnimationKeyEditor(UndoRedo *p_undo_redo, EditorHistory *p_h
// menu->get_popup()->connect("item_pressed",this,"_menu_callback");
ec = memnew (EmptyControl);
ec->set_minsize(Size2(0,50));
ec = memnew (Control);
ec->set_custom_minimum_size(Size2(0,50));
add_child(ec);
ec->set_v_size_flags(SIZE_EXPAND_FILL);