summaryrefslogtreecommitdiffstats
path: root/examples/modal/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2022-12-22 15:03:23 +0100
committerLibravatar GitHub <noreply@github.com>2022-12-22 15:03:23 +0100
commita6d0d5773f0561a841a84b538523cbd97e91eccd (patch)
treeecd41b861f0ff38736373f532ee2c7d2664dd420 /examples/modal/src
parent678de1187994f29e3701740617bb5b1963f80c69 (diff)
parent5f2ec138d7b6793f781aab16ec59e0224ac4edef (diff)
downloadiced-a6d0d5773f0561a841a84b538523cbd97e91eccd.tar.gz
iced-a6d0d5773f0561a841a84b538523cbd97e91eccd.tar.bz2
iced-a6d0d5773f0561a841a84b538523cbd97e91eccd.zip
Merge pull request #1615 from iced-rs/fix/responsive-operations
Fix operations for `Responsive` widget
Diffstat (limited to 'examples/modal/src')
-rw-r--r--examples/modal/src/main.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/modal/src/main.rs b/examples/modal/src/main.rs
index 2f20795c..5afafd0d 100644
--- a/examples/modal/src/main.rs
+++ b/examples/modal/src/main.rs
@@ -325,11 +325,13 @@ mod modal {
&self,
state: &mut Tree,
layout: Layout<'_>,
+ renderer: &Renderer,
operation: &mut dyn widget::Operation<Message>,
) {
self.base.as_widget().operate(
&mut state.children[0],
layout,
+ renderer,
operation,
);
}
@@ -436,11 +438,13 @@ mod modal {
fn operate(
&mut self,
layout: Layout<'_>,
+ renderer: &Renderer,
operation: &mut dyn widget::Operation<Message>,
) {
self.content.as_widget().operate(
self.tree,
layout.children().next().unwrap(),
+ renderer,
operation,
);
}