summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/CheckBox.cpp
diff options
context:
space:
mode:
authorFrHun <28605587+frhun@users.noreply.github.com>2022-02-22 20:25:30 +0100
committerSam Atkins <atkinssj@gmail.com>2022-06-28 17:52:42 +0100
commit19fac58e4981e50f7915a48eaf1741757b8dabf9 (patch)
tree4bd93cb4667428af12e8c15561dcad72892ce2dd /Userland/Libraries/LibGUI/CheckBox.cpp
parentbfbaad9f418bea6a1866e0ed3f86bf517345ed0a (diff)
downloadserenity-19fac58e4981e50f7915a48eaf1741757b8dabf9.zip
LibGUI: Use new layout system for basic widgets
Diffstat (limited to 'Userland/Libraries/LibGUI/CheckBox.cpp')
-rw-r--r--Userland/Libraries/LibGUI/CheckBox.cpp4
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)