diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-01-13 07:39:31 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-01-13 07:39:31 -0300 |
commit | c4cee22510bc8222e66ef2a7fd5d158371ac07e0 (patch) | |
tree | 6928bb43ec06093526dba33672feed7563a6f268 /tools | |
parent | e47c584d770141e1bc0d33da479e0a1412145ce6 (diff) |
Properly fix tab scrolling, fixes #3128, fixes #3314
Diffstat (limited to 'tools')
-rw-r--r-- | tools/editor/editor_node.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp index d4596c7496..9258637a74 100644 --- a/tools/editor/editor_node.cpp +++ b/tools/editor/editor_node.cpp @@ -143,6 +143,7 @@ void EditorNode::_update_scene_tabs() { } scene_tabs->set_current_tab(editor_data.get_edited_scene()); + scene_tabs->ensure_tab_visible(editor_data.get_edited_scene()); } @@ -5055,7 +5056,7 @@ EditorNode::EditorNode() { scene_tabs=memnew( Tabs ); scene_tabs->add_tab("unsaved"); scene_tabs->set_tab_align(Tabs::ALIGN_CENTER); - scene_tabs->set_tab_close_display_policy(Tabs::SHOW_ACTIVE_ONLY); + scene_tabs->set_tab_close_display_policy(Tabs::CLOSE_BUTTON_SHOW_ACTIVE_ONLY); scene_tabs->connect("tab_changed",this,"_scene_tab_changed"); scene_tabs->connect("right_button_pressed",this,"_scene_tab_script_edited"); scene_tabs->connect("tab_close", this, "_scene_tab_closed"); |