web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Dynamic Formatting of ...
Power Apps
Unanswered

Dynamic Formatting of Height of Gallery Inside Another Gallery

(0) ShareShare
ReportReport
Posted on by 183

Hello all!

 

I am trying to dynamically format the height of a gallery ('subGallery') inside of another gallery ('mainGallery').

 

My app saves each item a user selects form a combo-box in a form, and displays each of those items in 'mainGallery' with separators between each of them. When the user selects an item in 'mainGallery' , a form will pop-up that asks the user to fill out a Comments field and an Attachments field. When they submit the details from the two-fields from the pop-up, the details will be shown for that item selected in 'mainGallery'. However, I decided to put another gallery ('subGallery') inside 'mainGallery' to show ALL of the attachments inserted into the pop-up by the user. 'mainGallery' just shows the Comments typed in by the user and the Date & Time from when they submitted the pop-up from when they clicked on an item.

 

EX: A user selects "January" and "February" from the combo-box of my main form, which populates the 'mainGallery' with each item (separated by a separator). When they click into each item, a pop-up appears (which holds another form) that prompts them to write a comment and attach however many attachments they'd like. For "January", the user writes a comment and attaches 2 attachments. For "February", the user writes a comment and attaches 1 attachment.

 

jharville1_1-1608179548047.png

 

If my attachments field inside the form of the pop-up is called 'attachmentsField', and I have a Label inside my 'subGallery' called 'label1' , what code would I put inside the Height property of 'label1' to dynamically format the height depending on however many attachments are inserted inside the pop-up of my form?

 

 

 

 

Categories:
I have the same question (0)
  • Gopala_Krishna Profile Picture
    1,495 on at

    @jharville1 

     

    You can use the Auto height feature of the label control to auto re-size the content based on the data being pushed into the label.

     

    You can find this under the design part of the label or you can directly access it from the label properties present on the top left hand side.

     

    If the information shared helps  you, please consider giving a thumbs up 👍 and mark the solution as resolved 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard