diff options
| author | Rémi Verschelde | 2017-09-27 22:15:00 +0200 |
|---|---|---|
| committer | GitHub | 2017-09-27 22:15:00 +0200 |
| commit | da144fed4c49133a93b3b83cfc665352c0af351a (patch) | |
| tree | e3ee2e13f9c0664e2c9fa8474fbf7ae9a1fbb5c1 /scene/gui/popup.cpp | |
| parent | 78423320d78235a5b2fde05e7816f79de729f317 (diff) | |
| parent | bd8a5fba30510558ce34f6a863567d668524f5b3 (diff) | |
| download | godot-da144fed4c49133a93b3b83cfc665352c0af351a.tar.gz godot-da144fed4c49133a93b3b83cfc665352c0af351a.tar.zst godot-da144fed4c49133a93b3b83cfc665352c0af351a.zip | |
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 1460fba89..211029895 100644 --- a/scene/gui/popup.cpp +++ b/scene/gui/popup.cpp @@ -265,7 +265,7 @@ void PopupPanel::set_child_rect(Control *p_child) { ERR_FAIL_NULL(p_child); Ref<StyleBox> p = get_stylebox("panel"); - p_child->set_anchors_and_margins_preset(Control::PRESET_WIDE); + p_child->set_anchors_preset(Control::PRESET_WIDE); p_child->set_margin(MARGIN_LEFT, p->get_margin(MARGIN_LEFT)); p_child->set_margin(MARGIN_RIGHT, -p->get_margin(MARGIN_RIGHT)); p_child->set_margin(MARGIN_TOP, p->get_margin(MARGIN_TOP)); |
