From 8fe851057df0df113aaac6b8dc067b3a75d18d65 Mon Sep 17 00:00:00 2001 From: Nick Senger Date: Fri, 10 Feb 2023 12:08:22 -0800 Subject: fix: lazy widgets overlay is_over --- lazy/src/responsive.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lazy/src/responsive.rs') diff --git a/lazy/src/responsive.rs b/lazy/src/responsive.rs index e399e7b0..93069493 100644 --- a/lazy/src/responsive.rs +++ b/lazy/src/responsive.rs @@ -415,4 +415,11 @@ where }) .unwrap_or(iced_native::event::Status::Ignored) } + + fn is_over(&self, layout: Layout<'_>, cursor_position: Point) -> bool { + self.with_overlay_maybe(|overlay| { + overlay.is_over(layout, cursor_position) + }) + .unwrap_or_default() + } } -- cgit From 7b8b01f560569ae18d9337a31ba94f6c1c2ba0dd Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 4 Feb 2023 12:24:13 +0100 Subject: Use `f32` in `Length::Units` and rename it to `Fixed` --- lazy/src/responsive.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lazy/src/responsive.rs') diff --git a/lazy/src/responsive.rs b/lazy/src/responsive.rs index 93069493..57c07de1 100644 --- a/lazy/src/responsive.rs +++ b/lazy/src/responsive.rs @@ -42,7 +42,7 @@ where content: RefCell::new(Content { size: Size::ZERO, layout: layout::Node::new(Size::ZERO), - element: Element::new(horizontal_space(Length::Units(0))), + element: Element::new(horizontal_space(0)), }), } } -- cgit