summaryrefslogtreecommitdiffstats
path: root/lazy/src
diff options
context:
space:
mode:
authorLibravatar Giuliano Bellini <100347457+GyulyVGC@users.noreply.github.com>2023-02-02 16:52:56 +0100
committerLibravatar GitHub <noreply@github.com>2023-02-02 16:52:56 +0100
commita35d6d2e4d59f71309f31c87ea5150959d639185 (patch)
treeefd44456685739bce1962146e66002654c9ecb0e /lazy/src
parent49e9a9a5379c1e9a9469045ca9a51ffb860ee620 (diff)
parent98a717383acf71d7939d7cc90d350743487f0380 (diff)
downloadiced-a35d6d2e4d59f71309f31c87ea5150959d639185.tar.gz
iced-a35d6d2e4d59f71309f31c87ea5150959d639185.tar.bz2
iced-a35d6d2e4d59f71309f31c87ea5150959d639185.zip
Merge branch 'iced-rs:master' into master
Diffstat (limited to '')
-rw-r--r--lazy/src/component.rs8
-rw-r--r--lazy/src/lazy.rs4
-rw-r--r--lazy/src/responsive.rs4
3 files changed, 10 insertions, 6 deletions
diff --git a/lazy/src/component.rs b/lazy/src/component.rs
index d8f21f8a..94263274 100644
--- a/lazy/src/component.rs
+++ b/lazy/src/component.rs
@@ -227,6 +227,10 @@ where
local_shell.revalidate_layout(|| shell.invalidate_layout());
+ if let Some(redraw_request) = local_shell.redraw_request() {
+ shell.request_redraw(redraw_request);
+ }
+
if !local_messages.is_empty() {
let mut heads = self.state.take().unwrap().into_heads();
@@ -451,9 +455,9 @@ where
position: Point,
) -> layout::Node {
self.with_overlay_maybe(|overlay| {
- let vector = position - overlay.position();
+ let translation = position - overlay.position();
- overlay.layout(renderer, bounds).translate(vector)
+ overlay.layout(renderer, bounds, translation)
})
.unwrap_or_default()
}
diff --git a/lazy/src/lazy.rs b/lazy/src/lazy.rs
index 933def96..9795afa4 100644
--- a/lazy/src/lazy.rs
+++ b/lazy/src/lazy.rs
@@ -313,9 +313,9 @@ where
position: Point,
) -> layout::Node {
self.with_overlay_maybe(|overlay| {
- let vector = position - overlay.position();
+ let translation = position - overlay.position();
- overlay.layout(renderer, bounds).translate(vector)
+ overlay.layout(renderer, bounds, translation)
})
.unwrap_or_default()
}
diff --git a/lazy/src/responsive.rs b/lazy/src/responsive.rs
index 52badda2..e399e7b0 100644
--- a/lazy/src/responsive.rs
+++ b/lazy/src/responsive.rs
@@ -356,9 +356,9 @@ where
position: Point,
) -> layout::Node {
self.with_overlay_maybe(|overlay| {
- let vector = position - overlay.position();
+ let translation = position - overlay.position();
- overlay.layout(renderer, bounds).translate(vector)
+ overlay.layout(renderer, bounds, translation)
})
.unwrap_or_default()
}