Recompute layout of Responsive contents when size changes

This commit is contained in:
Héctor Ramón Jiménez 2022-01-20 04:09:46 +07:00
parent 79ac5bb890
commit a3744ec97a
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -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(