You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Grid rows in DataTemplate with no visible content affect layout in Android ListView #1473
area/gridCategorizes an issue or PR as relevant to the Grid paneldifficulty/starter 🚀Categorizes an issue for which the difficulty level is reachable by newcomerskind/bugSomething isn't workingplatform/android 🤖Categorizes an issue or PR as relevant to the Android platformproject/items 🧾Categorizes an issue or PR as relevant to items (ItemsControl, ItemsRepeater, ...)
Grid rows that contain either a collapsed control or no control still appear to reserve space in a ListView datatemplate, shrinking available space for content-containing rows.
Expected behavior
Empty/unused grid rows should not reserve any space, as in UWP.
How to reproduce it (as minimally and precisely as possible)
In the attached project, launch in Android - the first listview has content visibly cut off, while the second listview displays its content fully. The only difference is the first datatemplate's extra Grid rows containing collapsed controls. App14.zip
The collapsed controls don't seem to change anything to the issue.
Using the provided sample project, I noticed that the empty RowDefinitions are enough to replicate the issue : The ListViewItems are still kind of shrinked if you remove the Textblocks.
So investigating more about those I found in the documentation that RowDefinitions have a default Height of 1* and not 0.
This may be the cause of this issue.
A quick workaround would be to set the RowDefinitions Height to Auto so that they will forcefully be at 0 Height when they have a collapsed Content.
area/gridCategorizes an issue or PR as relevant to the Grid paneldifficulty/starter 🚀Categorizes an issue for which the difficulty level is reachable by newcomerskind/bugSomething isn't workingplatform/android 🤖Categorizes an issue or PR as relevant to the Android platformproject/items 🧾Categorizes an issue or PR as relevant to items (ItemsControl, ItemsRepeater, ...)
Activity
MakanWG commentedon Oct 9, 2019
The collapsed controls don't seem to change anything to the issue.
Using the provided sample project, I noticed that the empty RowDefinitions are enough to replicate the issue : The ListViewItems are still kind of shrinked if you remove the Textblocks.
So investigating more about those I found in the documentation that RowDefinitions have a default Height of 1* and not 0.
This may be the cause of this issue.
A quick workaround would be to set the RowDefinitions Height to Auto so that they will forcefully be at 0 Height when they have a collapsed Content.
carldebilly commentedon Jun 1, 2021
This issue is not present anymore in Uno.UI 3.7.x
fix: material appbarbutton styles + converter bug (unoplatform#1473)