diff options
| author | kubecz3k | 2017-08-15 22:55:49 +0200 |
|---|---|---|
| committer | GitHub | 2017-08-15 22:55:49 +0200 |
| commit | 129ebca41d8ed85830580c593eafa2a8637cb5be (patch) | |
| tree | f357e95da9894f88b6c6910a087a710b2a62b64b /editor/plugins/sample_editor_plugin.cpp | |
| parent | aa24ddc59f723ba51ea752d32f092ca5e7b6b9e3 (diff) | |
| parent | 0041e08f747f5d29ca7fbc65eb86175983aa84af (diff) | |
| download | godot-129ebca41d8ed85830580c593eafa2a8637cb5be.tar.gz godot-129ebca41d8ed85830580c593eafa2a8637cb5be.tar.zst godot-129ebca41d8ed85830580c593eafa2a8637cb5be.zip | |
Merge pull request #9889 from groud/control_enhancements
Control node enhancements
Diffstat (limited to 'editor/plugins/sample_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/sample_editor_plugin.cpp | 6 |
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); |
