diff options
| author | TwistedTwigleg | 2017-08-11 15:10:05 -0400 |
|---|---|---|
| committer | Rémi Verschelde | 2017-08-16 17:22:23 +0200 |
| commit | 00f6c859282bb4dab3f6b4f6c20c44222221ebe9 (patch) | |
| tree | ab3d2bae1ce8e9661480535a6442c94e5aeafd83 /scene/gui/popup.cpp | |
| parent | b1ecaaa22b8dd87a75db414cb84ad0f60d5d4cef (diff) | |
| download | godot-00f6c859282bb4dab3f6b4f6c20c44222221ebe9.tar.gz godot-00f6c859282bb4dab3f6b4f6c20c44222221ebe9.tar.zst godot-00f6c859282bb4dab3f6b4f6c20c44222221ebe9.zip | |
Diffstat (limited to 'scene/gui/popup.cpp')
| -rw-r--r-- | scene/gui/popup.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scene/gui/popup.cpp b/scene/gui/popup.cpp index bdd0e8e59..f2ba6bfbc 100644 --- a/scene/gui/popup.cpp +++ b/scene/gui/popup.cpp @@ -203,15 +203,15 @@ void Popup::popup_centered_ratio(float p_screen_ratio) { popped_up = true; } -void Popup::popup(const Rect2 &bounds) { +void Popup::popup(const Rect2 &p_bounds) { emit_signal("about_to_show"); show_modal(exclusive); // Fit the popup into the optionally provided bounds. - if (!bounds.has_no_area()) { - set_position(bounds.position); - set_size(bounds.size); + if (!p_bounds.has_no_area()) { + set_position(p_bounds.position); + set_size(p_bounds.size); } _fix_size(); |
