summaryrefslogtreecommitdiffstats
path: root/native/src/widget/radio.rs
diff options
context:
space:
mode:
Diffstat (limited to 'native/src/widget/radio.rs')
-rw-r--r--native/src/widget/radio.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/widget/radio.rs b/native/src/widget/radio.rs
index 62bc2447..4477b810 100644
--- a/native/src/widget/radio.rs
+++ b/native/src/widget/radio.rs
@@ -101,8 +101,8 @@ where
}
/// Sets the size of the [`Radio`] button.
- pub fn size(mut self, size: f32) -> Self {
- self.size = size;
+ pub fn size(mut self, size: impl Into<Pixels>) -> Self {
+ self.size = size.into().0;
self
}