mirror of https://github.com/godotengine/godot
Fix bottom panel dock layout popup position
Update EditorDockManager::_dock_container_popup to consistently use tab bar position to determine popup position, rather than combining tab bar and container positions. This handles cases where the tabs are on the bottom of the container, like for the bottom panel.
This commit is contained in:
parent
7ed0b61676
commit
a7e227b7bb
|
|
@ -298,7 +298,7 @@ void EditorDockManager::_dock_container_popup(int p_tab_idx, TabContainer *p_doc
|
|||
|
||||
// Right click context menu.
|
||||
dock_context_popup->set_dock(hovered_dock);
|
||||
dock_context_popup->set_position(p_dock_container->get_tab_bar()->get_screen_position() + p_dock_container->get_local_mouse_position());
|
||||
dock_context_popup->set_position(p_dock_container->get_tab_bar()->get_screen_position() + p_dock_container->get_tab_bar()->get_local_mouse_position());
|
||||
dock_context_popup->popup();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue