Skip to content

Commit

Permalink
feat(effectiveviewport): Make sure to raise the UIElement.EffectiveVi…
Browse files Browse the repository at this point in the history
…ewportChanged on Arrange on Skia
  • Loading branch information
dr1rrb committed Nov 16, 2020
1 parent c8ba949 commit 3c896e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Uno.UI/Media/NativeRenderTransformAdapter.Skia.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ partial void Initialized()

partial void Apply(bool isSizeChanged, bool isOriginChanged)
{
Owner.Visual.TransformMatrix = new Matrix4x4(Transform.ToMatrix(new Windows.Foundation.Point(CurrentOrigin.X * CurrentSize.Width, CurrentOrigin.Y * CurrentSize.Height)));
Owner.Visual.TransformMatrix = new Matrix4x4(Transform.ToMatrix(CurrentOrigin, CurrentSize));
}

partial void Cleanup()
Expand Down
2 changes: 1 addition & 1 deletion src/Uno.UI/UI/Xaml/UIElement.Skia.cs
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ internal void ArrangeVisual(Rect finalRect, Rect? clippedFrame = default)
}

OnArrangeVisual(newRect, clip);
OnViewportUpdated(clippedFrame ?? Rect.Empty);
}
else
{
Expand All @@ -261,7 +262,6 @@ internal virtual void OnArrangeVisual(Rect rect, Rect? clip)
Visual.CenterPoint = new Vector3((float)RenderTransformOrigin.X, (float)RenderTransformOrigin.Y, 0);

ApplyNativeClip(clip ?? Rect.Empty);

}

partial void ApplyNativeClip(Rect clip)
Expand Down

0 comments on commit 3c896e5

Please sign in to comment.