summaryrefslogtreecommitdiffstats
path: root/examples/loading_spinners/src/circular.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/loading_spinners/src/circular.rs')
-rw-r--r--examples/loading_spinners/src/circular.rs11
1 files changed, 5 insertions, 6 deletions
diff --git a/examples/loading_spinners/src/circular.rs b/examples/loading_spinners/src/circular.rs
index a92a5dd1..e80617d0 100644
--- a/examples/loading_spinners/src/circular.rs
+++ b/examples/loading_spinners/src/circular.rs
@@ -244,12 +244,11 @@ where
tree::State::new(State::default())
}
- fn width(&self) -> Length {
- Length::Fixed(self.size)
- }
-
- fn height(&self) -> Length {
- Length::Fixed(self.size)
+ fn size(&self) -> Size<Length> {
+ Size {
+ width: Length::Fixed(self.size),
+ height: Length::Fixed(self.size),
+ }
}
fn layout(