Skip to content

Commit

Permalink
Invalidate when attached to visual tree
Browse files Browse the repository at this point in the history
  • Loading branch information
wieslawsoltes committed Oct 31, 2024
1 parent 7ca13f2 commit 13b5e14
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Avalonia.Controls.PanAndZoom/ZoomBorder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ private void PanAndZoom_AttachedToVisualTree(object? sender, VisualTreeAttachmen
{
Log($"[AttachedToVisualTree] {Name}");
ChildChanged(Child);

_updating = true;
Invalidate(skipTransitions: false);
_updating = false;
}

private void PanAndZoom_DetachedFromVisualTree(object? sender, VisualTreeAttachmentEventArgs e)
Expand Down

0 comments on commit 13b5e14

Please sign in to comment.