1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:18:11 +00:00

LibGUI: Make Tray item height honor the current font size

This commit is contained in:
Andreas Kling 2023-02-02 01:22:08 +01:00
parent be3a9048be
commit 9347db6f91

View file

@ -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,