Recompute layout of Responsive contents when size changes
This commit is contained in:
parent
79ac5bb890
commit
a3744ec97a
1 changed files with 3 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue