When border is added as Content the Desired Size Height is not updated properly when changing at runtime. #16064
Labels
area-controls-border
Border
area-controls-collectionview
CollectionView, CarouselView, IndicatorView
area-layout
StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter
platform/windows 🪟
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
-Created a CollectionView with Border as Direct Content of DataTemplate.
-Inside Border defined Grid with RowDefinitions as stat and Auto.Defined Label as FirstRow and Second row with VerticalStackLayout and changed is visibility at runtime through SelectionChanged event.
-When Changing the visibility the Content Height is not updated in View.Eventhough updated as AutoSizing custom control.
-With Border, The content measure is done, the Border content is returned with improper Desired Height value.
OutPut Image:
Steps to Reproduce
1.Run the sample
2.Tap item to change the item visibility
Observed Behavior: Item visibility was changed but item not updated in view with updated Height.
Expected Behavior: Item visibility must be changed and updated in view.
Link to public reproduction project repository
https://github.com/AnanthaLakshmiKannan/Issue-Border
Version with bug
7.0.86
Last version that worked well
Unknown/Other
Affected platforms
Android, Windows
Affected platform versions
Android 13 - API 33
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: