summaryrefslogtreecommitdiffstats
path: root/examples/modal
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2023-11-21 19:03:49 +0100
committerLibravatar GitHub <noreply@github.com>2023-11-21 19:03:49 +0100
commit170db35891d7824f8140610bce20708deecb8a62 (patch)
treee03bf161d97acedd71152a5c34cb0f5c9e32ed4c /examples/modal
parent7dd32f3be43c72e11dac5e07918e9ad6d36b6555 (diff)
parent89e3de7c08dc07eefbcc2617f0da63282aa1c8ef (diff)
downloadiced-170db35891d7824f8140610bce20708deecb8a62.tar.gz
iced-170db35891d7824f8140610bce20708deecb8a62.tar.bz2
iced-170db35891d7824f8140610bce20708deecb8a62.zip
Merge pull request #2142 from iced-rs/fix/overlay-composition
Fix `Overlay` composition
Diffstat (limited to 'examples/modal')
-rw-r--r--examples/modal/src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/modal/src/main.rs b/examples/modal/src/main.rs
index 3b69f5e6..acb14372 100644
--- a/examples/modal/src/main.rs
+++ b/examples/modal/src/main.rs
@@ -231,6 +231,7 @@ mod modal {
use iced::mouse;
use iced::{
BorderRadius, Color, Element, Event, Length, Point, Rectangle, Size,
+ Vector,
};
/// A widget that centers a modal element over some base element
@@ -413,6 +414,7 @@ mod modal {
renderer: &Renderer,
_bounds: Size,
position: Point,
+ _translation: Vector,
) -> layout::Node {
let limits = layout::Limits::new(Size::ZERO, self.size)
.width(Length::Fill)