diff options
Diffstat (limited to '')
-rw-r--r-- | lazy/Cargo.toml | 11 | ||||
-rw-r--r-- | lazy/src/lib.rs | 5 | ||||
-rw-r--r-- | lazy/src/pure/responsive.rs | 5 |
3 files changed, 17 insertions, 4 deletions
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 <hector0193@gmail.com>"] 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 diff --git a/lazy/src/lib.rs b/lazy/src/lib.rs index 5d7d10e4..916f9458 100644 --- a/lazy/src/lib.rs +++ b/lazy/src/lib.rs @@ -1,7 +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; 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<R, T>( |