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

Community site session details

Session Id : Rw2X3AbzgnzG64ZOWlxcMd
Power Apps - Building Power Apps
Answered

Auto Height Property is not Working properly for the controls inside the Gallery

Like (0) ShareShare
ReportReport
Posted on 15 Oct 2020 13:05:30 by Microsoft Employee

Hello Everyone, I have enabled auto height property on the labels used inside a gallery but the content is overlapping on one another.
Is there any way to control the height of gallery template so that the content looks proper?
Attached screenshots for reference

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on 19 Oct 2020 at 04:04:06
    Re: Auto Height Property is not Working properly for the controls inside the Gallery

    Hi@

     

    ClearCollect(tem,{test1:"agagwerhgshfds"},{test1:"agagwerhgshfdshfgdjfgdjds"},{test1:"agagweasgsfdhfdshfdjhfgkjghlklrhgshfdshfgdjfgdjdshhhhhhhhggffgtyuikkhbvcdstjnbftunyuhgg"})

     

     

    RoundUp(Len(ThisItem.test1)/11,0)*36

     

    003.png

    Best Regards,

    Qi

  • v-jagoud Profile Picture
    Microsoft Employee on 16 Oct 2020 at 09:53:00
    Re: Auto Height Property is not Working properly for the controls inside the Gallery

    Hi @v-qiaqi-msft ,

     

    Thanks for the reply.
    I have updated the gallery template height to be dynamic as per your suggestion but, it doesn't seem to resolve the issue.
    attached screenshot

     

    Note: It looks like the only way is to increase the template height to accommodate the max length of the label(to accommodate the lengthy content) used inside the gallery but it would be the same for all the rows. attached screenshot 

     

     

  • v-qiaqi@microsoft.com Profile Picture
    on 16 Oct 2020 at 01:48:09
    Re: Auto Height Property is not Working properly for the controls inside the Gallery

    Hi@

    Based on the issue that you mentioned, do you want to make the Label automatically adjust the row of the Gallery?

    I have a test on my side, please take a try as below.

    • Set the Label AutoHeight property: true
    • Find and copy the expression in the Y property of your needed Label
    • Put the copy result in Gallery TemplateSize property and do an addition:002.png003.png

    Best Regards,

    Qi

  • Community Power Platform Member Profile Picture
    on 15 Oct 2020 at 14:01:47
    Re: Auto Height Property is not Working properly for the controls inside the Gallery

    @v-jagoud 

     

    Hello,

     

    If I understand you correctly.

     

    I think you need to put some code in the Y property of your labels

     

    For example:

     

    In label2 (the one under your first label, lets call it Label1) put this code in the Y property:

     

    Label1.Y + Label1.Height +5

     

    Replace "Label1" with your labels name

     

    cheers

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete