Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger frame events when the frame changes #3521

Merged
merged 4 commits into from
Nov 29, 2021
Merged

Trigger frame events when the frame changes #3521

merged 4 commits into from
Nov 29, 2021

Conversation

mattleibow
Copy link
Member

@mattleibow mattleibow commented Nov 23, 2021

Description of Change

At some point in the past, we no longer triggered the Frame property and then command, so certain updates were not propagated.

This PR makes sue that when NativeArrange is called and updates the native view, it triggers the Frame command which in turn allows the ViewHandlers to update things like transforms, shadows and backgrounds.

On iOS, this gave rise to the case where if the transforms were set in the XAML, then they would reach the handler before the first layout event. This meant that the width/height would still be -1 and the transforms would be skipped. Then, when the layout happened, the transforms would not be calculated.

@mattleibow mattleibow added the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label Nov 23, 2021
@Redth Redth merged commit a34f377 into main Nov 29, 2021
@Redth Redth deleted the dev/frames branch November 29, 2021 18:20
@github-actions github-actions bot locked and limited conversation to collaborators Dec 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants