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

Make tab containers in editor, project settings, and export dialog, to use hidden tabs for min size computation.

This commit is contained in:
azagaya
2019-01-26 15:41:36 -03:00
parent b203f80dfc
commit fa6f86b886
5 changed files with 25 additions and 4 deletions

View File

@@ -889,7 +889,8 @@ bool EditorNode::_find_and_save_edited_subresources(Object *obj, Map<RES, bool>
ret_changed = true;
}
} break;
default: {}
default: {
}
}
}
@@ -5102,6 +5103,7 @@ EditorNode::EditorNode() {
dock_slot[i]->set_drag_to_rearrange_enabled(true);
dock_slot[i]->set_tabs_rearrange_group(1);
dock_slot[i]->connect("tab_changed", this, "_dock_tab_changed");
dock_slot[i]->set_use_hidden_tabs_for_min_size(true);
}
dock_drag_timer = memnew(Timer);