Uno: [macOS] RenderTransforms are not applied on initial load

Created on 10 Apr 2020  路  3Comments  路  Source: unoplatform/uno

Current behavior

UIElement with RenderTransform declared in XAML initially shows up without any transform. Any change then applies the transform.

Expected behavior

Transforms should be applied immediately.

How to reproduce it (as minimally and precisely as possible)

Samples app Transform sample Basic_Automated.

Environment

Nuget Package:

Package Version(s):

Affected platform(s):

  • [ ] iOS
  • [ ] Android
  • [ ] WebAssembly
  • [ ] WebAssembly renderers for Xamarin.Forms
  • [x] macOS
  • [ ] Windows
  • [ ] Build tasks
  • [ ] Solution Templates

Visual Studio:

  • [ ] 2017 (version: )
  • [ ] 2019 (version: )
  • [ ] for Mac (version: )

Relevant plugins:

  • [ ] Resharper (version: )

Anything else we need to know?

kinbug platformacos

All 3 comments

I have spend over an hour on this but without success so far :-( . Maybe someone will be more lucky. The problem is probably the same as here. Unfortunately even putting a "re-initialization" step within DidMoveToSuperview did not do the trick, whereas adding any small delay (Task.Delay) before the operation had fixed the problem.

@dr1rrb Am I assuming correctly that your PR fixes this issue?

Yes @MartinZikmund , I didn't saw this issue, it has been fixed by https://github.com/unoplatform/uno/pull/3759. Even if I'm not really satisfied by the code, it seems that we don't have any other options on macOS, so I'm closing this issue.

Was this page helpful?
0 / 5 - 0 ratings