mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user