mirror of
https://github.com/RGBCube/serenity
synced 2025-06-28 17:02:12 +00:00
LibGUI: Round up font sizes in various widget size calculations
This commit is contained in:
parent
c44bc58aaa
commit
f1e0eb8a25
5 changed files with 10 additions and 10 deletions
|
@ -66,7 +66,7 @@ Optional<UISize> RadioButton::calculated_min_size() const
|
|||
int horizontal = 2 + 7, vertical = 0;
|
||||
auto& font = this->font();
|
||||
vertical = max(font.glyph_height(), circle_size().height());
|
||||
horizontal += font.width(text());
|
||||
horizontal += static_cast<int>(ceilf(font.width(text())));
|
||||
return UISize(horizontal, vertical);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue