Fix checkbox example

This commit is contained in:
Héctor Ramón Jiménez 2023-02-24 13:56:37 +01:00
parent b2c87cdd23
commit 700262e05c
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
3 changed files with 20 additions and 10 deletions

View file

@ -267,7 +267,7 @@ where
code_point,
size,
} = &self.icon;
let size = size.map(f32::from).unwrap_or(bounds.height * 0.7);
let size = size.unwrap_or(bounds.height * 0.7);
if self.is_checked {
renderer.fill_text(text::Text {