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

Display Bug On iOS about BoxView that under initial InVisible Layout #22897

Open
maonaoda opened this issue Jun 7, 2024 · 5 comments
Open

Display Bug On iOS about BoxView that under initial InVisible Layout #22897

maonaoda opened this issue Jun 7, 2024 · 5 comments
Labels
area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter i/regression This issue described a confirmed regression on a currently supported version platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@maonaoda
Copy link
Contributor

maonaoda commented Jun 7, 2024

Description

Each element of Options has an underline at the bottom。

  • When options are initially displayed (IsVisable=True), the display is correct, as shown in the red box in the following image:
     ①、②、③

image

  • When I Tapped the On RadioButton,the underline in options was not shown at all.

image

  • But when I bring the app back to the foreground from the background, or scroll the CollectionView, the underline reappears.
    I suspect that iOS is not rendering in time.
    image

  • When I keep updating the selection of RadioButton and scrolling CollectionView, there is a probability that all option elements are covered together.
    image

This is obviously a very serious display problem.

Steps to Reproduce

No response

Link to public reproduction project repository

https://github.com/maonaoda/MauiDisplayBugOnIOS

Version with bug

8.0.40 SR5

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms, Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

@maonaoda maonaoda added the t/bug Something isn't working label Jun 7, 2024
Copy link
Contributor

github-actions bot commented Jun 7, 2024

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@maonaoda
Copy link
Contributor Author

maonaoda commented Jun 7, 2024

Is it because the BoxView width is not set?

@maonaoda
Copy link
Contributor Author

maonaoda commented Jun 7, 2024

Or Binding the isVisible param to Boxview

@maonaoda maonaoda changed the title Display Bug On iOS about BindableLayout in VerticalStackLayout Display Bug On iOS about BoxView that under initial InVisible Layout Jun 7, 2024
@ninachen03 ninachen03 added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed i/regression This issue described a confirmed regression on a currently supported version labels Jun 7, 2024
@ninachen03
Copy link
Collaborator

Verified this issue with Visual Studio 17.11.0 Preview 1.1(8.0.40) can repro it but(8.0.21 &8.0.3) cannot repro.

@maonaoda
Copy link
Contributor Author

maonaoda commented Jun 7, 2024

temp workaround:

  1. Set an explicit size to BoxView

  2. Bind the IsVisible of the parent to BoxView as well
    (After Fix BoxView not rendering when is hidden on start #21960 Merged)
    or

                    BoxViewHandler.Mapper.ReplaceMapping<BoxView, BoxViewHandler>(nameof(BoxView.IsVisible), (handler, boxView) =>
                    {
                        BoxViewHandler.MapShape(handler, boxView);
                        BoxViewHandler.MapBackground(handler, boxView);
                    });

@jsuarezruiz jsuarezruiz added this to the .NET 8 + Servicing milestone Jun 7, 2024
@jsuarezruiz jsuarezruiz added area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter platform/iOS 🍎 labels Jun 7, 2024
@samhouts samhouts removed s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jul 3, 2024
@samhouts samhouts added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter i/regression This issue described a confirmed regression on a currently supported version platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants