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

When border is added as Content the Desired Size Height is not updated properly when changing at runtime. #16064

Open
AnanthaLakshmiKannan opened this issue Jul 10, 2023 · 3 comments
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

Comments

@AnanthaLakshmiKannan
Copy link

AnanthaLakshmiKannan commented Jul 10, 2023

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:
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

@AnanthaLakshmiKannan AnanthaLakshmiKannan added the t/bug Something isn't working label Jul 10, 2023
@ghost ghost added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Jul 10, 2023
@jsuarezruiz jsuarezruiz added the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label Jul 10, 2023
@jsuarezruiz jsuarezruiz added this to the Backlog milestone Jul 10, 2023
@ghost
Copy link

ghost commented Jul 10, 2023

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

@mattleibow
Copy link
Member

Maybe related/duplicate: #15177

@XamlTest XamlTest added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Aug 3, 2023
@XamlTest
Copy link
Collaborator

XamlTest commented Aug 3, 2023

Verified this on Visual Studio Enterprise 17.7.0 Preview 6.0. Repro on Windows 11 and iOS 16.4 .NET 8, not repro on Android 13.0-API33 with below Project:
Issue-Border.zip

@Eilon Eilon removed the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

5 participants