mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 22:21:18 +00:00
Added reset_size method to Control and Window classes
This commit is contained in:
parent
ed02b8af59
commit
eabf8f5edf
30 changed files with 85 additions and 61 deletions
|
|
@ -508,7 +508,7 @@ void TextEditor::_make_context_menu(bool p_selection, bool p_can_fold, bool p_is
|
|||
context_menu->set_item_disabled(context_menu->get_item_index(EDIT_REDO), !tx->has_redo());
|
||||
|
||||
context_menu->set_position(get_global_transform().xform(p_position));
|
||||
context_menu->set_size(Vector2(1, 1));
|
||||
context_menu->reset_size();
|
||||
context_menu->popup();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue