-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
IBorder now works again for iOS/Android #4909
Conversation
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.
Seems good to me, but then @jsuarezruiz is probably more of an expert.
BringSubviewToFront(BorderView); | ||
BorderView.Frame = Bounds; |
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.
We no longer need to bring it to front? @jsuarezruiz?
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.
Tried and is not necessary. Is already done in other place.
We were bringing it to the front twice, instead of setting the frame. So I changed one to frame. I think it was a bad merge. |
@@ -5,6 +5,26 @@ namespace Microsoft.Maui.Platform | |||
{ | |||
public static class StrokeExtensions | |||
{ | |||
public static void UpdateBorderStroke(this AView platformView, IBorderStroke border) |
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.
Do Windows require changes too?
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.
Maybe? Was traveling without a windows machine. Was going to check tomorrow.
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.
Yes, taking a look to WrapperView on Windows the logic to manage the border is missing. I think we should use the BorderChanged
method to detect changes and ContentPanel
control instead Grid in the WrapperView.
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.
I will send another PR with the Windows implementation. In that way we can merge and not block this PR.
BringSubviewToFront(BorderView); | ||
BorderView.Frame = Bounds; |
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.
Tried and is not necessary. Is already done in other place.
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
@PureWeen looks my suggestion was wrong :( I didn't know why since there is a check for null right before |
@pictos oh yea it's an |
Silly me >.< |
On iOS, the overlay view never had it's frame set.
On Android, we were not calling all the correct properties, if it's only an iBorder