diff options
author | kubecz3k <kubecz3k@gmail.com> | 2017-08-15 22:55:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-15 22:55:49 +0200 |
commit | 129ebca41d8ed85830580c593eafa2a8637cb5be (patch) | |
tree | f357e95da9894f88b6c6910a087a710b2a62b64b /main/tests/test_gui.cpp | |
parent | aa24ddc59f723ba51ea752d32f092ca5e7b6b9e3 (diff) | |
parent | 0041e08f747f5d29ca7fbc65eb86175983aa84af (diff) |
Merge pull request #9889 from groud/control_enhancements
Control node enhancements
Diffstat (limited to 'main/tests/test_gui.cpp')
-rw-r--r-- | main/tests/test_gui.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/main/tests/test_gui.cpp b/main/tests/test_gui.cpp index 3c6a708cd8..44d4464aac 100644 --- a/main/tests/test_gui.cpp +++ b/main/tests/test_gui.cpp @@ -278,7 +278,7 @@ public: richtext->set_position(Point2(600, 210)); richtext->set_size(Point2(180, 250)); - richtext->set_anchor_and_margin(MARGIN_RIGHT, Control::ANCHOR_END, 20); + richtext->set_anchor_and_margin(MARGIN_RIGHT, Control::ANCHOR_END, -20); frame->add_child(richtext); @@ -319,8 +319,6 @@ public: ///richtext->add_text("Hello!\n"); //richtext->pop(); - richtext->set_anchor(MARGIN_RIGHT, Control::ANCHOR_END); - TabContainer *tabc = memnew(TabContainer); Control *ctl = memnew(Control); |