Merge pull request #10455 from groud/control_margin_fixes

Some control fixes and removed other useless lines
This commit is contained in:
Rémi Verschelde
2017-08-20 15:24:00 +02:00
committed by GitHub
8 changed files with 10 additions and 15 deletions

View File

@ -1939,10 +1939,8 @@ CustomPropertyEditor::CustomPropertyEditor() {
text_edit = memnew(TextEdit);
add_child(text_edit);
text_edit->set_area_as_parent_rect();
for (int i = 0; i < 4; i++)
text_edit->set_margin((Margin)i, 5);
text_edit->set_margin(MARGIN_BOTTOM, 30);
text_edit->set_area_as_parent_rect(5);
text_edit->set_margin(MARGIN_BOTTOM, -30);
text_edit->hide();
text_edit->connect("text_changed", this, "_text_edit_changed");