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:
parent
be3a9048be
commit
9347db6f91
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue