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') 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') 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') 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 From d23026d2dd24ae6daa20f479678ad802f493c7bc Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 2 May 2022 21:53:25 +0200 Subject: Bump versions :tada: --- lazy/Cargo.toml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'lazy') diff --git a/lazy/Cargo.toml b/lazy/Cargo.toml index 2d7451f3..7d439e47 100644 --- a/lazy/Cargo.toml +++ b/lazy/Cargo.toml @@ -1,7 +1,14 @@ [package] name = "iced_lazy" version = "0.1.0" +authors = ["Héctor Ramón Jiménez "] edition = "2021" +description = "Lazy widgets for Iced" +license = "MIT" +repository = "https://github.com/iced-rs/iced" +documentation = "https://docs.rs/iced_lazy" +keywords = ["gui", "ui", "graphics", "interface", "widgets"] +categories = ["gui"] [features] pure = ["iced_pure"] @@ -10,10 +17,10 @@ pure = ["iced_pure"] ouroboros = "0.13" [dependencies.iced_native] -version = "0.4" +version = "0.5" path = "../native" [dependencies.iced_pure] -version = "0.1" +version = "0.2" path = "../pure" optional = true -- cgit