diff options
author | Andreas Kling <kling@serenityos.org> | 2023-02-02 01:22:08 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-02-02 13:15:03 +0100 |
commit | 9347db6f91bfb92a6ae306f1099bce616f00101c (patch) | |
tree | 8a0e81651515bfc62a6457383a7929f553457844 | |
parent | be3a9048be24486e9a58ba669afe6f8e03f7e9ae (diff) | |
download | serenity-9347db6f91bfb92a6ae306f1099bce616f00101c.zip |
LibGUI: Make Tray item height honor the current font size
-rw-r--r-- | Userland/Libraries/LibGUI/Tray.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/Tray.cpp b/Userland/Libraries/LibGUI/Tray.cpp index 6ea44cf2cd..dccfc5d223 100644 --- a/Userland/Libraries/LibGUI/Tray.cpp +++ b/Userland/Libraries/LibGUI/Tray.cpp @@ -24,7 +24,7 @@ Tray::Tray() Gfx::IntRect Tray::Item::rect(Tray const& tray) const { - static constexpr int item_height = 22; + int item_height = static_cast<int>(ceilf(tray.font().pixel_size())) + 12; return Gfx::IntRect { tray.frame_thickness(), tray.frame_thickness() + static_cast<int>(index) * item_height, |