Skip to content

Commit a3744ec

Browse files
committed
Recompute layout of Responsive contents when size changes
1 parent 79ac5bb commit a3744ec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lazy/src/responsive.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,9 @@ where
268268
hasher.finish()
269269
};
270270

271-
if new_layout_hash != state.last_layout_hash {
271+
if state.last_size != Some(state.last_layout.size())
272+
|| new_layout_hash != state.last_layout_hash
273+
{
272274
state.last_layout = element.layout(
273275
renderer.deref(),
274276
&layout::Limits::new(

0 commit comments

Comments
 (0)