aboutsummaryrefslogtreecommitdiff
path: root/editor/property_editor.cpp
diff options
context:
space:
mode:
authorGilles Roudiere2017-08-19 19:10:00 +0200
committerGilles Roudiere2017-08-19 19:10:00 +0200
commit06256cd7782de2d91cd9ed3bcb9a05e293397303 (patch)
tree48e2ea3efe55780838956a227ffe48ebba1bb9db /editor/property_editor.cpp
parent523b3c11cf6de311cc3a711ed85ee48e72330a7b (diff)
downloadgodot-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.cpp6
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");