From 05bb8e0c106686f2ed5a9aad0f76ecc64fa5faa0 Mon Sep 17 00:00:00 2001 From: Gilles Roudiere Date: Fri, 22 Sep 2017 00:12:33 +0200 Subject: Remove set_area_as_parent_rect and replace it by set_anchors_and_margins_preset(PRESET_WIDE) --- scene/gui/popup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene/gui/popup.cpp') diff --git a/scene/gui/popup.cpp b/scene/gui/popup.cpp index 5a2a552943..1460fba89a 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 p = get_stylebox("panel"); - p_child->set_area_as_parent_rect(); + p_child->set_anchors_and_margins_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)); -- cgit v1.2.3