浏览代码

fixed wrong placement of AcceptDialog Buttons issue-6143

bebae 9 年之前
父节点
当前提交
dd9189aac4
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      scene/gui/dialogs.cpp

+ 0 - 2
scene/gui/dialogs.cpp

@@ -399,8 +399,6 @@ AcceptDialog::AcceptDialog() {
 	add_child(label);
 
 	hbc = memnew( HBoxContainer );
-	hbc->set_area_as_parent_rect(margin);
-	hbc->set_anchor_and_margin(MARGIN_TOP,ANCHOR_END,button_margin);
 	add_child(hbc);
 
 	hbc->add_spacer();