diff options
| author | Gilles Roudiere <gilles.roudiere@gmail.com> | 2017-07-06 09:16:27 +0200 |
|---|---|---|
| committer | Gilles Roudiere <gilles.roudiere@gmail.com> | 2017-08-13 21:20:13 +0200 |
| commit | 0d35d4d53b12197bea3650293bbc342fc0b57139 (patch) | |
| tree | afd384ffb3f6a8511fb7f052a0ef7da7256bfc05 /main | |
| parent | 9575dbdf788e8a5154b3ec2f66913e731ac02850 (diff) | |
| download | redot-engine-0d35d4d53b12197bea3650293bbc342fc0b57139.tar.gz | |
Replace GUI anchor type by a float between 0 and 1
Diffstat (limited to 'main')
| -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); |
