diff options
| author | 2022-05-04 17:19:28 +0200 | |
|---|---|---|
| committer | 2022-05-04 17:19:28 +0200 | |
| commit | 27fdc707562d4e229f07ed9496ed5d64f4e108bc (patch) | |
| tree | 8a87286f0ccd125df1c2b5c597c2d2805ceb27c5 /lazy | |
| parent | a97c520c814a6d3cc538537791be39e0c3182d6d (diff) | |
| parent | 02914e5e68d1fbaad53483cd32c74d9ac448d1eb (diff) | |
| download | iced-27fdc707562d4e229f07ed9496ed5d64f4e108bc.tar.gz iced-27fdc707562d4e229f07ed9496ed5d64f4e108bc.tar.bz2 iced-27fdc707562d4e229f07ed9496ed5d64f4e108bc.zip | |
Merge branch 'master' into dev/system-information
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>( | 
