Repository navigation
fix(transform): [MacOS] Fix transform not applied - #3759
Conversation
| private static void DeferredInitialize(object sender, RoutedEventArgs e) | ||
| { | ||
| var fwElt = (FrameworkElement)sender; | ||
| var adapter = fwElt._renderTransform; |
There was a problem hiding this comment.
Could _renderTransform be null ?
There was a problem hiding this comment.
Not here: the _renderTransform it actually itself
|
The build 18447 found UI Test snapshots differences: Details
|
|
The build 18447 found UI Test snapshots differences: Details
|
|
The build 18447 found UI Test snapshots differences: Details
|
BugFix
The
RenderTransformis not applied on macOS views when they are set before rendering the elment.What is the current behavior?
When a
RenderTransformis set on aNSViewit's synchronously set on theNSView.Layer.Transform. But this cause a bug on Mac OS and the transform is never applied to the view.What is the new behavior?
We wait for the next dispatcher loop after the control has been loaded to set the
NSView.Layer.Transform.Note: We hide the control while deferring in order to avoid flickers.
PR Checklist
Screenshots Compare Test Runresults.Other information
Internal Issue: https://nventive.visualstudio.com/_workitems/edit/191447