Hi all -
I am not sure if there is a way to grow this label. I selected auto height but the textbox does not seem to grow.
This is in a blank gallery.
I tried to follow https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/gallery-dynamic-sizing but it didn't work.
- is it possible to grow this label and the corresponding text box?
- can i shrink the box if the label is empty?
Thanks
Solved! Go to Solution.
Hi@Bunly11,
I am afraid there is no direct way to achieve this currently in PowerApps.
As I mentioned before, you could consider setting the AutoHeight property of the HTMLText as "false", and then you could scroll it to view all the content within.
For the Label auto height, you could try the previous solution I provided.
Best Regards,
Qi
Hi@Bunly11,
Based on the issue that you mentioned, do you want to make the Label automatically adjust the row of the Gallery?
Could you please share a bit more about the scenario, do you mean that you want to enlarge the Label to display all the text within?
Actually, the AutoHeight property was designed to estimate the content size and to adjust its height accordingly. A row within a Gallery might also be taller than you expect if it contains a control for which the AutoHeight property is set to true.
If my understanding is correct, what you want is to change the template size of the gallery based on the data in the Label. As for that you also want to shrink the box if the label is empty, I am afraid that there is no way to achieve this in PowerApps currently.
In a word, surely you could make the Label auto high, while it is impossible to adjust the Label to shrink when it is empty.
I have a test on my side, please take a try as below.
Min(168, Self.Height - 60)+Subtitle1.Y + Subtitle1.Height + 4
Best Regards,
Qi
I tried what you suggested below but the htmltext box didn't grow. Is it because there is another datacard below it?
Should I put something in the height of the datacard?
Thank you
Hi@Bunly11,
Sorry for the late reply. I have just come back from my vocation.
Combine that with your description, I just provide a solution that makes the Label within the data card auto high rather than the HTML text box. If you want to also make the HTML text box auto high, you should add something else.
I have a test on my side, please take a try as below.
GalleryTemplateSizeValue+LabelYpropertyValue+HTMLTextYpropertyValue
Best Regards,
Qi
I tried that but now the htmltextbox lost the scroll bar and I am not able to see the additional information in the box.
The datacard/gallery are not shrinking.
With autoheight off i get the scrollbar
This is that I put in the gallery template size
Thanks
Hi@Bunly11,
Could you please tell me:
Let me make it easy for you. Actually, inserting a Gallery into a data card is not allowed while the users could copy and paste it to the data card. What you have done is a bug in PowerApps. Since you have inserted a Gallery to a data card which could cause some functions not working.
Also, the HTMLText has the height limit, the AutoHeight property will not work once the cap is exceeded.
As an alternative solution, you could consider setting the AutoHeight property of the HTMLText as "false", and then you could scroll it to view all the content within.
Hope it could help you.
Best Regards,
Qi
This was the only way I could figure out after searching on google. I have 60+ items I want to display on a scrollable screen.
I have currently 3 datacards with gallery inserted. Is there a better way?
Hi@Bunly11,
I am afraid there is no direct way to achieve this currently in PowerApps.
As I mentioned before, you could consider setting the AutoHeight property of the HTMLText as "false", and then you could scroll it to view all the content within.
For the Label auto height, you could try the previous solution I provided.
Best Regards,
Qi
User | Count |
---|---|
183 | |
108 | |
88 | |
44 | |
43 |
User | Count |
---|---|
226 | |
108 | |
105 | |
68 | |
68 |