Fixed right dock dragger not disappearing when there is no docks there.

This commit is contained in:
Michael Alexsander Silva Dias 2017-12-22 16:49:14 -02:00
parent 1fa9aac3e4
commit 68a6edfd1b

View file

@ -3529,6 +3529,11 @@ void EditorNode::_dock_select_input(const Ref<InputEvent> &p_input) {
splits[i]->hide(); splits[i]->hide();
} }
if (right_l_vsplit->is_visible() || right_r_vsplit->is_visible())
right_hsplit->show();
else
right_hsplit->hide();
_edit_current(); _edit_current();
_save_docks(); _save_docks();
} }
@ -3805,7 +3810,11 @@ void EditorNode::_update_dock_slots_visibility() {
} }
} }
bottom_panel->show(); bottom_panel->show();
if (right_l_vsplit->is_visible() || right_r_vsplit->is_visible())
right_hsplit->show(); right_hsplit->show();
else
right_hsplit->hide();
} }
} }
@ -3895,6 +3904,11 @@ void EditorNode::_load_docks_from_config(Ref<ConfigFile> p_layout, const String
splits[i]->hide(); splits[i]->hide();
} }
if (right_l_vsplit->is_visible() || right_r_vsplit->is_visible())
right_hsplit->show();
else
right_hsplit->hide();
for (int i = 0; i < DOCK_SLOT_MAX; i++) { for (int i = 0; i < DOCK_SLOT_MAX; i++) {
if (dock_slot[i]->is_visible() && dock_slot[i]->get_tab_count()) { if (dock_slot[i]->is_visible() && dock_slot[i]->get_tab_count()) {