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

AutoSuggestBox in NavigationView does not collapse when hidden #11660

Open
Suriman opened this issue Mar 13, 2023 · 3 comments
Open

AutoSuggestBox in NavigationView does not collapse when hidden #11660

Suriman opened this issue Mar 13, 2023 · 3 comments
Labels
area/autosuggestbox Categorizes an issue or PR as relevant to the AutoSuggestBox control area/navigationview 🧭 Categorizes an issue or PR as relevant to the NavigationView control difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI kind/bug Something isn't working platform/all Categorizes an issue or PR as relevant to the all platforms project/layout 🧱 Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..)

Comments

@Suriman
Copy link

Suriman commented Mar 13, 2023

Current behavior

If the AutoSuggestBox is included in a NavigationView pane and the visibility of the AutoSuggestBox is controlled by a binding, then the space it occupies does not collapse when it disappears. Additionally if the NavigationView pane collapses, the search icon appears indicating a field that does not appear when it is expanded.

Expected behavior

When the AutoSuggestBox collapses the space it occupies also collapses and when the NavigationView pane collaapses no search icon is shown.

How to reproduce it (as minimally and precisely as possible)

Open the attached solution and compile it.
Execute it in any head.
In the attached solution you can show and hide the AutoSuggestBox using a ToogleButton and if the NavigationView pane is collapsed without the AutoSuggestBox you can see the search icon.

Workaround

No known workaround.

Works on UWP/WinUI

No

Environment

Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia

NuGet package version(s)

4.7.44

Affected platforms

WebAssembly, Android, Skia (WPF), Windows

IDE

Visual Studio 2022

IDE version

17.5.1

Relevant plugins

No response

Anything else we need to know?

No response

@Suriman Suriman added difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Mar 13, 2023
@Youssef1313
Copy link
Member

@Suriman I guess you forgot to upload the repro?

@Youssef1313 Youssef1313 added platform/all Categorizes an issue or PR as relevant to the all platforms area/navigationview 🧭 Categorizes an issue or PR as relevant to the NavigationView control area/autosuggestbox Categorizes an issue or PR as relevant to the AutoSuggestBox control labels Mar 13, 2023
@Suriman
Copy link
Author

Suriman commented Mar 13, 2023

@Youssef1313 I can't upload it because of a error in GitHub. I have sent it to Sasha by Teams.

@jeromelaban jeromelaban removed the triage/untriaged Indicates an issue requires triaging or verification label Mar 14, 2023
@ADD-David-Antolin
Copy link

Removing height attribute here seems to do the trick.

@MartinZikmund MartinZikmund changed the title The AutoSuggestBox in NavigationView does not collapse when hidden. AutoSuggestBox in NavigationView does not collapse when hidden Sep 11, 2023
@MartinZikmund MartinZikmund added project/layout 🧱 Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..) difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI and removed difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. labels Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/autosuggestbox Categorizes an issue or PR as relevant to the AutoSuggestBox control area/navigationview 🧭 Categorizes an issue or PR as relevant to the NavigationView control difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI kind/bug Something isn't working platform/all Categorizes an issue or PR as relevant to the all platforms project/layout 🧱 Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..)
Projects
None yet
Development

No branches or pull requests

5 participants