diff options
Diffstat (limited to 'lazy/src/responsive.rs')
-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( |