Skip to content

Commit

Permalink
Merge pull request #2628 from tarkah/fix/pane-grid-continuity
Browse files Browse the repository at this point in the history
Fix/pane grid continuity
  • Loading branch information
hecrj authored Oct 24, 2024
2 parents f4d0387 + d08bc6e commit 17b35df
Show file tree
Hide file tree
Showing 3 changed files with 194 additions and 151 deletions.
5 changes: 4 additions & 1 deletion widget/src/lazy/responsive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ where
new_size: Size,
view: &dyn Fn(Size) -> Element<'a, Message, Theme, Renderer>,
) {
if self.size == new_size {
let is_tree_empty =
tree.tag == tree::Tag::stateless() && tree.children.is_empty();

if !is_tree_empty && self.size == new_size {
return;
}

Expand Down
Loading

0 comments on commit 17b35df

Please sign in to comment.