diff options
author | crupest <crupest@outlook.com> | 2022-02-09 23:53:18 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-02-09 23:53:18 +0800 |
commit | b8863c403a44c1c7ac35f1a1da92bbf3c8858552 (patch) | |
tree | 7e38f029f0657e6c1210a53f1cba331cdb8feab6 /src/ui/controls/TextBox.cpp | |
parent | d18b5453d7ffd19667ee8ac125b34ab5328f0dc3 (diff) | |
download | cru-b8863c403a44c1c7ac35f1a1da92bbf3c8858552.tar.gz cru-b8863c403a44c1c7ac35f1a1da92bbf3c8858552.tar.bz2 cru-b8863c403a44c1c7ac35f1a1da92bbf3c8858552.zip |
...
Diffstat (limited to 'src/ui/controls/TextBox.cpp')
-rw-r--r-- | src/ui/controls/TextBox.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/controls/TextBox.cpp b/src/ui/controls/TextBox.cpp index 11b77e99..66b6bd43 100644 --- a/src/ui/controls/TextBox.cpp +++ b/src/ui/controls/TextBox.cpp @@ -24,8 +24,8 @@ TextBox::TextBox() theme_manager->GetResourceBrush(u"text.caret.brush")); text_render_object_->SetEditMode(true); - border_render_object_->AddChild(scroll_render_object_.get(), 0); - scroll_render_object_->AddChild(text_render_object_.get(), 0); + border_render_object_->SetChild(scroll_render_object_.get()); + scroll_render_object_->SetChild(text_render_object_.get()); border_render_object_->SetAttachedControl(this); scroll_render_object_->SetAttachedControl(this); |