From 7b539479cfbe06d2495a9904ed2eeb0536a32f1c Mon Sep 17 00:00:00 2001 From: Nick Senger Date: Mon, 25 Apr 2022 16:40:34 -0700 Subject: fix: panic when using pure component in pure responsive --- lazy/src/pure/responsive.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lazy/src') diff --git a/lazy/src/pure/responsive.rs b/lazy/src/pure/responsive.rs index 2b62a047..e464d156 100644 --- a/lazy/src/pure/responsive.rs +++ b/lazy/src/pure/responsive.rs @@ -67,12 +67,13 @@ impl<'a, Message, Renderer> Content<'a, Message, Renderer> { self.element = view(new_size); self.size = new_size; + + tree.diff(&self.element); + self.layout = self .element .as_widget() .layout(renderer, &layout::Limits::new(Size::ZERO, self.size)); - - tree.diff(&self.element); } fn resolve( -- cgit From 6fe6daa64f6a549493f641d035d5aa2eed3c58c9 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 2 May 2022 20:33:10 +0200 Subject: Add `html_logo_url` to `iced_core` and `iced_lazy` --- lazy/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lazy/src') diff --git a/lazy/src/lib.rs b/lazy/src/lib.rs index 5d7d10e4..e1b06f74 100644 --- a/lazy/src/lib.rs +++ b/lazy/src/lib.rs @@ -1,3 +1,6 @@ +#![doc( + html_logo_url = "https://raw.githubusercontent.com/iced-rs/iced/9ab6923e943f784985e9ef9ca28b10278297225d/docs/logo.svg" +)] pub mod component; pub mod responsive; -- cgit From 84c28a73e2a7ace8547e892f675bfc497d157bcb Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 2 May 2022 21:01:25 +0200 Subject: Indicate feature-flagged modules in documentation --- lazy/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lazy/src') diff --git a/lazy/src/lib.rs b/lazy/src/lib.rs index e1b06f74..916f9458 100644 --- a/lazy/src/lib.rs +++ b/lazy/src/lib.rs @@ -1,10 +1,12 @@ #![doc( html_logo_url = "https://raw.githubusercontent.com/iced-rs/iced/9ab6923e943f784985e9ef9ca28b10278297225d/docs/logo.svg" )] +#![cfg_attr(docsrs, feature(doc_cfg))] pub mod component; pub mod responsive; #[cfg(feature = "pure")] +#[cfg_attr(docsrs, doc(cfg(feature = "pure")))] pub mod pure; pub use component::Component; -- cgit