diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-04-30 10:15:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-30 10:15:02 +0200 |
commit | d0e628fa55da50bd4841f1865b47bb6b283fb886 (patch) | |
tree | 4b9f6670bce19d3a7bb0998151b34c3131930217 /scene/gui/popup.cpp | |
parent | d647f7ce71dc54dcc77a9e3591ba904ffa9ab1e2 (diff) | |
parent | b8e09f98c421c68816be9d58d528746efce91cb6 (diff) | |
download | redot-engine-d0e628fa55da50bd4841f1865b47bb6b283fb886.tar.gz |
Merge pull request #28334 from YeldhamDev/popup_buttons_scale
Make buttons that trigger popups have the same scale
Diffstat (limited to 'scene/gui/popup.cpp')
-rw-r--r-- | scene/gui/popup.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/popup.cpp b/scene/gui/popup.cpp index 80ec7049fc..b7601bdd3e 100644 --- a/scene/gui/popup.cpp +++ b/scene/gui/popup.cpp @@ -65,7 +65,7 @@ void Popup::_notification(int p_what) { void Popup::_fix_size() { Point2 pos = get_global_position(); - Size2 size = get_size(); + Size2 size = get_size() * get_scale(); Point2 window_size = get_viewport_rect().size; if (pos.x + size.width > window_size.width) |