diff options
Diffstat (limited to 'Userland/Libraries/LibGUI/GroupBox.cpp')
-rw-r--r-- | Userland/Libraries/LibGUI/GroupBox.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/GroupBox.cpp b/Userland/Libraries/LibGUI/GroupBox.cpp index 17cfd8842c..1409c9e478 100644 --- a/Userland/Libraries/LibGUI/GroupBox.cpp +++ b/Userland/Libraries/LibGUI/GroupBox.cpp @@ -24,6 +24,16 @@ GroupBox::~GroupBox() { } +Margins GroupBox::content_margins() const +{ + return { + (!m_title.is_empty() ? font().glyph_height() + 1 /*room for the focus rect*/ : 2), + 2, + 2, + 2 + }; +} + void GroupBox::paint_event(PaintEvent& event) { Painter painter(*this); |