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
[Bug] BoxView loses background color when its parent is removed and re-added to the container #3214
Comments
@alexeystrakh Do you have the same issue if you use a Rectangle? |
I have reproduced this issue after adding a few more controls to the layout, the underlying issue is not with the color but with the Grid layout which is not properly resized after the control is being added back to the layout in runtime. |
@alexeystrakh How are you positioning the Grid inside the AbsoluteLayout? |
@alexeystrakh I'm attaching my effort at reproducing this - can you take a look and tell me what I'm missing? Removing and re-adding the Grid, it seems to be sized fine and contain the expected BoxViews. |
This is not limited to BoxView - any Shape we remove and re-add has this issue. |
@hartez I can't reproduce it in main branch, could you attach an example or share more details?. Thanks! |
The repro project above will demonstrate it if you run it on Windows. |
Fix is merged in MAUI.Graphics - once we get the new version pulled into MAUI we can test again and possibly close this. |
Not reproducible with windows 10.0.19041. |
Description
BoxView loses background color when its parent is removed and re-added to the container. Rearrange is added in order to change the control's (target) z-index to move on top of other items.
Steps to Reproduce
Expected Behavior
BoxView keeps the background color
Actual Behavior
BoxView has no background after the step 2
Basic Information
Screenshots
the target in its original state:
the target after being removed and readded to the container
Reproduction Link
Workaround
None is found
The text was updated successfully, but these errors were encountered: