diff options
| author | Gilles Roudiere | 2017-08-19 19:10:00 +0200 |
|---|---|---|
| committer | Gilles Roudiere | 2017-08-19 19:10:00 +0200 |
| commit | 06256cd7782de2d91cd9ed3bcb9a05e293397303 (patch) | |
| tree | 48e2ea3efe55780838956a227ffe48ebba1bb9db /editor/property_editor.cpp | |
| parent | 523b3c11cf6de311cc3a711ed85ee48e72330a7b (diff) | |
| download | godot-06256cd7782de2d91cd9ed3bcb9a05e293397303.tar.gz godot-06256cd7782de2d91cd9ed3bcb9a05e293397303.tar.zst godot-06256cd7782de2d91cd9ed3bcb9a05e293397303.zip | |
Some control fixes and removed useless lines
Diffstat (limited to 'editor/property_editor.cpp')
| -rw-r--r-- | editor/property_editor.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/editor/property_editor.cpp b/editor/property_editor.cpp index 2f47d3e13..90af4f1de 100644 --- a/editor/property_editor.cpp +++ b/editor/property_editor.cpp @@ -1938,10 +1938,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"); |
