diff options
| author | crupest <crupest@outlook.com> | 2021-11-20 19:47:53 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2021-11-20 19:47:53 +0800 |
| commit | b0b86b6b9d6798d04a320060e90bd8497a7f50f9 (patch) | |
| tree | a6e3f3315a538791e1cbd4e799bc6268262feedb /src/ui/controls/TextBox.cpp | |
| parent | 2ad748a0fcb66398299886970cc9c40cc50b3cd0 (diff) | |
| download | cru-b0b86b6b9d6798d04a320060e90bd8497a7f50f9.tar.gz cru-b0b86b6b9d6798d04a320060e90bd8497a7f50f9.tar.bz2 cru-b0b86b6b9d6798d04a320060e90bd8497a7f50f9.zip | |
...
Diffstat (limited to 'src/ui/controls/TextBox.cpp')
| -rw-r--r-- | src/ui/controls/TextBox.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/controls/TextBox.cpp b/src/ui/controls/TextBox.cpp index 622401c4..c4912307 100644 --- a/src/ui/controls/TextBox.cpp +++ b/src/ui/controls/TextBox.cpp @@ -28,7 +28,7 @@ TextBox::TextBox() border_render_object_->SetAttachedControl(this); scroll_render_object_->SetAttachedControl(this); text_render_object_->SetAttachedControl(this); - text_render_object_->SetMinSize(Size{100, 24}); + text_render_object_->SetMinSize(Size{100, 0}); text_render_object_->SetMeasureIncludingTrailingSpace(true); service_ = std::make_unique<TextHostControlService>(this); |
