Skip to content

Commit

Permalink
popup window position adjustment bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ThakeeNathees committed Apr 3, 2020
1 parent 058a0af commit 5112ccf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scene/main/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,7 @@ void Window::popup(const Rect2i &p_screen_rect) {
set_size(p_screen_rect.size);
}

_update_window_size();
Rect2i adjust = _popup_adjust_rect();
if (adjust != Rect2i()) {
set_position(adjust.position);
Expand Down

0 comments on commit 5112ccf

Please sign in to comment.