diff options
author | 2022-01-20 04:09:46 +0700 | |
---|---|---|
committer | 2022-01-20 04:09:46 +0700 | |
commit | a3744ec97a462557ab9a3d2509f02263f425fd28 (patch) | |
tree | e3d33924fcf512a9727ea67bf11270e01c495efc /lazy | |
parent | 79ac5bb890d2076e54d8cad031459a3f575a5110 (diff) | |
download | iced-a3744ec97a462557ab9a3d2509f02263f425fd28.tar.gz iced-a3744ec97a462557ab9a3d2509f02263f425fd28.tar.bz2 iced-a3744ec97a462557ab9a3d2509f02263f425fd28.zip |
Recompute layout of `Responsive` contents when size changes
Diffstat (limited to 'lazy')
-rw-r--r-- | lazy/src/responsive.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lazy/src/responsive.rs b/lazy/src/responsive.rs index da7bb408..58d151ec 100644 --- a/lazy/src/responsive.rs +++ b/lazy/src/responsive.rs @@ -268,7 +268,9 @@ where hasher.finish() }; - if new_layout_hash != state.last_layout_hash { + if state.last_size != Some(state.last_layout.size()) + || new_layout_hash != state.last_layout_hash + { state.last_layout = element.layout( renderer.deref(), &layout::Limits::new( |