summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/TextBox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibGUI/TextBox.cpp')
-rw-r--r--Userland/Libraries/LibGUI/TextBox.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGUI/TextBox.cpp b/Userland/Libraries/LibGUI/TextBox.cpp
index b2a107524e..d781adfa63 100644
--- a/Userland/Libraries/LibGUI/TextBox.cpp
+++ b/Userland/Libraries/LibGUI/TextBox.cpp
@@ -18,8 +18,8 @@ namespace GUI {
TextBox::TextBox()
: TextEditor(TextEditor::SingleLine)
{
- set_min_width(32);
- set_fixed_height(22);
+ set_min_size({ 40, 22 });
+ set_preferred_size({ SpecialDimension::OpportunisticGrow, 22 });
}
void TextBox::keydown_event(GUI::KeyEvent& event)