summaryrefslogtreecommitdiffstats
path: root/examples/toast
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2023-07-27 18:48:06 +0200
committerLibravatar GitHub <noreply@github.com>2023-07-27 18:48:06 +0200
commit18f1ab551be6fe9a603eb07dceddf231c01b5c7f (patch)
treea4fd30a4252c3a1469a618ac4754ee8a6d81a518 /examples/toast
parente4b75ec9c76402dda7c6b6631918da240bb1c7ed (diff)
parentcbb5fcc8829e6fbe60f97cad8597c86ffd4f5b1a (diff)
downloadiced-18f1ab551be6fe9a603eb07dceddf231c01b5c7f.tar.gz
iced-18f1ab551be6fe9a603eb07dceddf231c01b5c7f.tar.bz2
iced-18f1ab551be6fe9a603eb07dceddf231c01b5c7f.zip
Merge pull request #1971 from iced-rs/visible-bounds-operation
`visible_bounds` operation for `Container`
Diffstat (limited to 'examples/toast')
-rw-r--r--examples/toast/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/toast/src/main.rs b/examples/toast/src/main.rs
index 5d29e895..42f6c348 100644
--- a/examples/toast/src/main.rs
+++ b/examples/toast/src/main.rs
@@ -381,7 +381,7 @@ mod toast {
renderer: &Renderer,
operation: &mut dyn Operation<Message>,
) {
- operation.container(None, &mut |operation| {
+ operation.container(None, layout.bounds(), &mut |operation| {
self.content.as_widget().operate(
&mut state.children[0],
layout,
@@ -622,7 +622,7 @@ mod toast {
renderer: &Renderer,
operation: &mut dyn widget::Operation<Message>,
) {
- operation.container(None, &mut |operation| {
+ operation.container(None, layout.bounds(), &mut |operation| {
self.toasts
.iter()
.zip(self.state.iter_mut())