summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-02-16 17:51:03 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-02-16 18:19:37 +0700
commit0aff444941f8b44b5a996dde4810ba6313f43a7e (patch)
tree9fc090eaf14211726263c76977798def0846618f /examples
parent8b5c9dfa71f770281ca277163c320571c39ee572 (diff)
downloadiced-0aff444941f8b44b5a996dde4810ba6313f43a7e.tar.gz
iced-0aff444941f8b44b5a996dde4810ba6313f43a7e.tar.bz2
iced-0aff444941f8b44b5a996dde4810ba6313f43a7e.zip
Rename `Image::fit` to `content_fit`
... just for consistency!
Diffstat (limited to 'examples')
-rw-r--r--examples/tour/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/tour/src/main.rs b/examples/tour/src/main.rs
index 63062e7c..0c61add0 100644
--- a/examples/tour/src/main.rs
+++ b/examples/tour/src/main.rs
@@ -748,7 +748,7 @@ fn ferris<'a>(width: u16) -> Container<'a, StepMessage> {
))
}
.width(Length::Units(width))
- .fit(ContentFit::Contain),
+ .content_fit(ContentFit::Contain),
)
.width(Length::Fill)
.center_x()
@@ -769,7 +769,7 @@ fn logo<'a>(height: u16, fit: ContentFit) -> Container<'a, StepMessage> {
}
.width(Length::Fill)
.height(Length::Units(height))
- .fit(fit),
+ .content_fit(fit),
)
.width(Length::Fill)
.center_x()