mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:37:42 +00:00
Userland: Use Font::pixel_size_rounded_up() in more places
This commit is contained in:
parent
2e2c717e89
commit
508fb7e1e9
7 changed files with 10 additions and 10 deletions
|
@ -70,7 +70,7 @@ Optional<UISize> RadioButton::calculated_min_size() const
|
|||
{
|
||||
auto const& font = this->font();
|
||||
int width = horizontal_padding() * 2 + circle_size().width() + static_cast<int>(ceilf(font.width(text())));
|
||||
int height = max(22, max(static_cast<int>(ceilf(font.pixel_size())) + 8, circle_size().height()));
|
||||
int height = max(22, max(font.pixel_size_rounded_up() + 8, circle_size().height()));
|
||||
return UISize(width, height);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue