Repository navigation
Closed
Labels
area/navigationview 🧭Categorizes an issue or PR as relevant to the NavigationView controldifficulty/tbdCategorizes an issue for which the difficulty level needs to be defined.kind/bugSomething isn't workingplatform/allCategorizes an issue or PR as relevant to the all platformsproject/layout 🧱Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..)
Milestone
Description
Current behavior
When MinHeight is set on a RowDefinition, it is ignored.
Expected behavior
Should be considered to properly measure the grid row.
How to reproduce it (as minimally and precisely as possible)
<Grid Background="Red" VerticalAlignment="Center">
<Grid.RowDefinitions>
<RowDefinition x:Name="RowDef" MinHeight="20" />
</Grid.RowDefinitions>
</Grid>
Notice on UWP you see a red horizontal bar, while in Uno there is none.
Note: on UWP, the MinHeight and MaxHeight value changes cause relayout, so if code sets the MinHeight at runtime, and the ActualHeight does not fall into the range [MinHeight,MaxHeight], a recalc of the Grid should be triggered.
Workaround
Environment
Nuget Package:
- Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia
- Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
- Uno.SourceGenerationTasks
- Uno.UI.RemoteControl / Uno.WinUI.RemoteControl
- Other:
Nuget Package Version(s):
Affected platform(s):
- iOS
- Android
- WebAssembly
- WebAssembly renderers for Xamarin.Forms
- macOS
- Skia
- WPF
- GTK (Linux)
- Tizen
- Windows
- Build tasks
- Solution Templates
Metadata
Metadata
Assignees
Labels
area/navigationview 🧭Categorizes an issue or PR as relevant to the NavigationView controldifficulty/tbdCategorizes an issue for which the difficulty level needs to be defined.kind/bugSomething isn't workingplatform/allCategorizes an issue or PR as relevant to the all platformsproject/layout 🧱Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..)
Activity
MartinZikmund commentedon Dec 12, 2020
This is used by WinUI
NavigationViewMartinZikmund commentedon Apr 27, 2021
@carldebilly 🚀🚀🚀🚀
refactor: Mark NavigationView Uno divergences with #if HAS_UNO
refactor: Mark NavigationView Uno divergences with #if HAS_UNO