Is there a method to dynamically set the height of a flexible height gallery? I have used flexible height as the individual items are varying sizes, but the gallery is embedded into a canvas and I wanted to avoid having seperate scroll bars for both the canvas and the gallery.
Solved! Go to Solution.
This is Template Size.
Let's say you have 10 records in gallery and your template size is 100.
CountRows(Gallery1.AllItems)*TemplateSize
This code will set your gallery height to 1000 dynamically.
Then in gallery height property write:
CountRows(Gallery1.AllItems)*TemplateSize
Not sure if it this works.
Hi - thanks for responding. PowerApps doesn't seem to recognise TemplateSize. Any ideas?
This is Template Size.
Let's say you have 10 records in gallery and your template size is 100.
CountRows(Gallery1.AllItems)*TemplateSize
This code will set your gallery height to 1000 dynamically.
Hi - thanks for the clarification. In the end it needed the gallery to be reidentified for template size so CountRows(Gallery1.AllItems)*Gallery1.TemplateSize
User | Count |
---|---|
161 | |
85 | |
68 | |
63 | |
61 |
User | Count |
---|---|
212 | |
146 | |
94 | |
81 | |
67 |