diff options
author | Gilles Roudiere <gilles.roudiere@gmail.com> | 2017-09-26 18:56:52 +0200 |
---|---|---|
committer | Gilles Roudiere <gilles.roudiere@gmail.com> | 2017-09-27 00:38:28 +0200 |
commit | 6f185cc9f7d8f9880dec01be86cf129dd0a38b84 (patch) | |
tree | 0ab2f9efc451b8d2bbae3430b61c3c42c011a099 /scene | |
parent | ccb4a6acee24ca0e0f14599364e171b7b88f8ac4 (diff) |
Remove unecessary anchors&margins set causing bad display (sons of containers)
Diffstat (limited to 'scene')
-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 1460fba89a..2110298950 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)); |