diff options
author | crupest <crupest@outlook.com> | 2020-12-31 18:27:57 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-12-31 18:27:57 +0800 |
commit | 1e1170a89330881c5fad60988bc27c824dfcf454 (patch) | |
tree | 9abebbcff045edbea24ea25a377cf34374074907 /src/ui/controls | |
parent | 0026d1f9b50270cd96d8a2a44c55410bc9dc2f7a (diff) | |
download | cru-1e1170a89330881c5fad60988bc27c824dfcf454.tar.gz cru-1e1170a89330881c5fad60988bc27c824dfcf454.tar.bz2 cru-1e1170a89330881c5fad60988bc27c824dfcf454.zip |
...
Diffstat (limited to 'src/ui/controls')
-rw-r--r-- | src/ui/controls/TextBox.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/controls/TextBox.cpp b/src/ui/controls/TextBox.cpp index e1acaee0..bfc98c06 100644 --- a/src/ui/controls/TextBox.cpp +++ b/src/ui/controls/TextBox.cpp @@ -28,6 +28,7 @@ TextBox::TextBox() scroll_render_object_->SetAttachedControl(this); text_render_object_->SetAttachedControl(this); text_render_object_->SetMinSize(Size{100, 24}); + text_render_object_->SetMeasureIncludingTrailingSpace(true); service_ = std::make_unique<TextHostControlService>(this); service_->SetEnabled(true); |