diff options
Diffstat (limited to 'Userland/Libraries/LibGUI/CheckBox.cpp')
-rw-r--r-- | Userland/Libraries/LibGUI/CheckBox.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGUI/CheckBox.cpp b/Userland/Libraries/LibGUI/CheckBox.cpp index a35b746b2d..34611c33fb 100644 --- a/Userland/Libraries/LibGUI/CheckBox.cpp +++ b/Userland/Libraries/LibGUI/CheckBox.cpp @@ -30,8 +30,8 @@ CheckBox::CheckBox(String text) { CheckBoxPosition::Left, "Left" }, { CheckBoxPosition::Right, "Right" }); - set_min_width(32); - set_fixed_height(22); + set_min_size({ 22, 22 }); + set_preferred_size({ SpecialDimension::OpportunisticGrow, 22 }); } void CheckBox::paint_event(PaintEvent& event) |