You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Make buttons that trigger popups have the same scale
This commit is contained in:
@@ -56,6 +56,7 @@ void LineEdit::_gui_input(Ref<InputEvent> p_event) {
|
||||
if (b->is_pressed() && b->get_button_index() == BUTTON_RIGHT && context_menu_enabled) {
|
||||
menu->set_position(get_global_transform().xform(get_local_mouse_position()));
|
||||
menu->set_size(Vector2(1, 1));
|
||||
menu->set_scale(get_global_transform().get_scale());
|
||||
menu->popup();
|
||||
grab_focus();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user