Open TonyLugg opened 1 year ago
Hi @TonyLugg. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md
This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
Sorry, I don't have time currently. I will redesign without the CarouselView.
Hi @TonyLugg. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md
This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
Hi, @TonyLugg - We would really appreciate a repro when you get a chance, so that we can investigate this issue properly as it peratins to your scenario and all your custom code. Thanks for understanding! https://github.com/dotnet/maui/blob/main/.github/repro.md#but-i-dont-have-time-for-this
I understand the importance of repros and I've submitted them in the past. This one would require a significant amount of time to create, and we've decided to re-engineer without the dynamic data templates and carousel view. I'm sorry but I'm not wanting to pursue this further at this time. Thank you for your understanding.
@jsuarezruiz @rachelkang @TonyLugg I have the same problem and managed to create a repro
https://github.com/codeaphex/ScrollViewRepro-14326
I first tried to get a repro by copying the layout with the scrollview into a page, but didnt get it to fail. Then I did the reverse and stripped down my whole project until I think I found the root problem. In my opinion it seems to be related to the scrollview being in nested views, havent checked all edge cases yet though.
The gif has some flickering at the start, dont know why. But if you follow closely you wont see "Peek-a-boo" while switching the IsVisible property right at the start. Then I change the RowDefintion height inside Visual Studio and let it HotReload, you see the height of the buttons changing. This probably causes the view to re-render the view, from this point on the "Peek-a-boo"'s Visibility is changed correctly. I also have some other bugs which seem to be related to that, like custom controls which recalcualte sizes based on items count, and only getting rendered correctly after getting the view to re-render.
Edit: Just noticed that it's working without issues on Windows.
@rachelkang Does this help or should I create a new issue for this bug/repro?
Verified this issue with Visual Studio Enterprise 17.7.0 Preview 4.0(net8). Can repro on Android platform with sample project. ScrollViewRepro-14326
Description
I'm having an issue with Android. I have data templates loaded with a template selector for carouselview. If I have a ScrollView containing a VerticalStackLayout full of elements with some having bound IsVisible, making the elements visible after the fact does not display them. It seems the ScrollView does not acknowledge the change in size of the stack layout. If I remove the ScrollView everything works fine. Also, if I scroll the carousel a few pages, then back they will show up (assume it reloads the template). This is a port from Xamarin Forms which worked as expected.
9078 was similar
Steps to Reproduce
Per the description above.
Link to public reproduction project repository
None
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android SDK 33
Did you find any workaround?
Removing the ScrollView fixes it. Going back to Xamarin Forms fixes it. Content is too long to remove the scrolling.
Relevant log output