diff options
author | 2024-11-22 04:13:38 +0100 | |
---|---|---|
committer | 2024-11-22 04:13:38 +0100 | |
commit | a805177b250b2316c0a9b4de06a3be4556d6944a (patch) | |
tree | 9a04331e34d54167cff40aab77d344f030b4d93e /examples | |
parent | 5be1d545d0baa09b82fe380d9246f66474cce302 (diff) | |
download | iced-a805177b250b2316c0a9b4de06a3be4556d6944a.tar.gz iced-a805177b250b2316c0a9b4de06a3be4556d6944a.tar.bz2 iced-a805177b250b2316c0a9b4de06a3be4556d6944a.zip |
Make `pin` widget `Fill` parent by default
Diffstat (limited to 'examples')
-rw-r--r-- | examples/layout/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/layout/src/main.rs b/examples/layout/src/main.rs index d71cbcbc..e83a1f7d 100644 --- a/examples/layout/src/main.rs +++ b/examples/layout/src/main.rs @@ -319,11 +319,11 @@ fn pinning<'a>() -> Element<'a, Message> { "The pin widget can be used to position a widget \ at some fixed coordinates inside some other widget.", stack![ - container(pin("• (50, 50)").width(Fill).height(Fill).x(50).y(50)) + container(pin("• (50, 50)").x(50).y(50)) .width(500) .height(500) .style(container::bordered_box), - pin("• (300, 300)").width(Fill).height(Fill).x(300).y(300), + pin("• (300, 300)").x(300).y(300), ] ] .align_x(Center) |