aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/TextBox.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-11-20 19:47:53 +0800
committercrupest <crupest@outlook.com>2021-11-20 19:47:53 +0800
commitb0b86b6b9d6798d04a320060e90bd8497a7f50f9 (patch)
treea6e3f3315a538791e1cbd4e799bc6268262feedb /src/ui/controls/TextBox.cpp
parent2ad748a0fcb66398299886970cc9c40cc50b3cd0 (diff)
downloadcru-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.cpp2
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);