-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Catalyst] Fix brushes in Frame #7925
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -132,7 +132,10 @@ void UpdateShadow() | |
public override void LayoutSubviews() | ||
{ | ||
if (_previousSize != Bounds.Size) | ||
{ | ||
SetNeedsDisplay(); | ||
this.UpdateBackgroundLayer(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm getting a little bit lost on this PR. We have a call here that's supposed to update the background layer. But that calls There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is similar. This PR apply changes to update the Frame background layer with size changes. Because the Frame continue using a Renderer, the changes are applied directly to the Renderer code. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This code is using the handler based Should this code go inside this class? The old renderer had it and it seems like it didn't get copied over? |
||
} | ||
|
||
base.LayoutSubviews(); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're modifying the compatibility renderer should this call get moved up to here?
https://github.com/dotnet/maui/blob/main/src/Controls/src/Core/Compatibility/Handlers/iOS/VisualElementRenderer.cs#L10