1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-24 15:26:15 +00:00

Merge pull request #28334 from YeldhamDev/popup_buttons_scale

Make buttons that trigger popups have the same scale
This commit is contained in:
Rémi Verschelde
2019-04-30 10:15:02 +02:00
committed by GitHub
8 changed files with 30 additions and 24 deletions

View File

@@ -2027,6 +2027,7 @@ void TextEdit::_gui_input(const Ref<InputEvent> &p_gui_input) {
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();
}