aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/sample_editor_plugin.cpp
diff options
context:
space:
mode:
authorGilles Roudiere2017-07-06 09:16:27 +0200
committerGilles Roudiere2017-08-13 21:20:13 +0200
commit0d35d4d53b12197bea3650293bbc342fc0b57139 (patch)
treeafd384ffb3f6a8511fb7f052a0ef7da7256bfc05 /editor/plugins/sample_editor_plugin.cpp
parent9575dbdf788e8a5154b3ec2f66913e731ac02850 (diff)
downloadgodot-0d35d4d53b12197bea3650293bbc342fc0b57139.tar.gz
godot-0d35d4d53b12197bea3650293bbc342fc0b57139.tar.zst
godot-0d35d4d53b12197bea3650293bbc342fc0b57139.zip
Replace GUI anchor type by a float between 0 and 1
Diffstat (limited to 'editor/plugins/sample_editor_plugin.cpp')
-rw-r--r--editor/plugins/sample_editor_plugin.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/plugins/sample_editor_plugin.cpp b/editor/plugins/sample_editor_plugin.cpp
index 739a8abb5..c4f04f0a8 100644
--- a/editor/plugins/sample_editor_plugin.cpp
+++ b/editor/plugins/sample_editor_plugin.cpp
@@ -366,14 +366,14 @@ SampleEditor::SampleEditor() {
sample_texframe = memnew( TextureRect );
add_child(sample_texframe);
sample_texframe->set_anchor_and_margin(MARGIN_LEFT,ANCHOR_BEGIN,5);
- sample_texframe->set_anchor_and_margin(MARGIN_RIGHT,ANCHOR_END,5);
+ sample_texframe->set_anchor_and_margin(MARGIN_RIGHT,ANCHOR_END,-5);
sample_texframe->set_anchor_and_margin(MARGIN_TOP,ANCHOR_BEGIN,30);
- sample_texframe->set_anchor_and_margin(MARGIN_BOTTOM,ANCHOR_END,5);
+ sample_texframe->set_anchor_and_margin(MARGIN_BOTTOM,ANCHOR_END,-5);
info_label = memnew( Label );
sample_texframe->add_child(info_label);
info_label->set_area_as_parent_rect();
- info_label->set_anchor_and_margin(MARGIN_TOP,ANCHOR_END,15);
+ info_label->set_anchor_and_margin(MARGIN_TOP,ANCHOR_END,-15);
info_label->set_margin(MARGIN_BOTTOM,4);
info_label->set_margin(MARGIN_RIGHT,4);
info_label->set_align(Label::ALIGN_RIGHT);