You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fix scale and position of popups with force_native.
This commit is contained in:
@@ -541,6 +541,10 @@ void OptionButton::show_popup() {
|
||||
|
||||
Rect2 rect = get_screen_rect();
|
||||
rect.position.y += rect.size.height;
|
||||
if (get_viewport()->is_embedding_subwindows() && popup->get_force_native()) {
|
||||
Transform2D xform = get_viewport()->get_popup_base_transform_native();
|
||||
rect = xform.xform(rect);
|
||||
}
|
||||
rect.size.height = 0;
|
||||
popup->popup(rect);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user