-
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
[Android] Fixed box view properties #21322
Conversation
/azp run MAUI-UITests-public |
Hey Rui, do you know why the UITest task is not running in this case? |
/azp run MAUI-UITests-public |
Azure Pipelines successfully started running 1 pipeline(s). |
@@ -64,7 +64,7 @@ protected override void OnPropertyChanged([CallerMemberName] string? propertyNam | |||
|
|||
PathAspect IShapeView.Aspect => PathAspect.None; | |||
|
|||
Paint? IShapeView.Fill => Color?.AsPaint() ?? ((IView)this).Background; | |||
Paint? IShapeView.Fill => Color?.AsPaint(); |
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 don't understand how this fixes it ,
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.
@rmarinho I've noticed that the box view is rendered twice. It is easy to observe when setting the translationY property to 200. This is the outcome:
With this ((IView)this).Background
part removed from the code the shapeViewHandler doesn't update the background and therefore does not draw that top right boxView
if (shapeView.Background is not null && shapeView.Fill is not null) |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
this.IgnoreIfPlatforms(new TestDevice[] { TestDevice.iOS, TestDevice.Mac, TestDevice.Windows }); | ||
_ = App.WaitForElement("boxView"); | ||
|
||
VerifyScreenshot(); |
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.
Added pending snapshot.
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/rebase |
1520c14
to
d3f6d8f
Compare
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
Description
The properties of BoxView haven't been automatically applied. Only when modified in the code after being initialized the changes be applied. It could be also replicated with a hot reload.
Issues Fixed
Fixes #19926