1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-16 14:00:40 +00:00

Merge pull request #52280 from jmb462/fix-bad-popup-offset-with-single-window-off

This commit is contained in:
Rémi Verschelde
2021-12-06 16:05:10 +01:00
committed by GitHub
36 changed files with 96 additions and 83 deletions

View File

@@ -2884,8 +2884,7 @@ void AnimationTrackEdit::gui_input(const Ref<InputEvent> &p_event) {
}
menu->set_as_minsize();
Vector2 popup_pos = get_screen_transform().xform(get_local_mouse_position());
menu->set_position(popup_pos);
menu->set_position(get_screen_position() + get_local_mouse_position());
menu->popup();
insert_at_pos = offset + timeline->get_value();