Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Autoheight label in flexbile gallery not work after publish

(0) ShareShare
ReportReport
Posted on by 155

Hi,

 

I am using a flexible gallery, and put a label with auto-height, it is working when I designed the app, however it is not worked when I play the app after publishing, can anyone give some comments? thanks.

 

Regards

Steven

Categories:
  • v-xida-msft Profile Picture
    v-xida-msft on at
    Re: Autoheight label in flexbile gallery not work after publish

    Hi @StevenZhang ,

    Yeah, have you solved your problem?

     

    If you have solved your problem or the solution I provided above is helpful in your scenario, please consider go ahead to click "Accept as Solution" to identify this thread has been solved.

     

    Best regards,

  • StevenZhang Profile Picture
    StevenZhang 155 on at
    Re: Autoheight label in flexbile gallery not work after publish

    Hi Kris,

     

    Did some tests, since I put a rectangle in the gallery, and setup its height to the label.Autoheight within the gallery. Now I changed to this, rectangle.Height = label.Lineheight, then it is worked. thank you.

    auto height setup.jpg

    Regards

    Steven

  • v-xida-msft Profile Picture
    v-xida-msft on at
    Re: Autoheight label in flexbile gallery not work after publish

    Hi @StevenZhang ,

    Have you take a try with standard Gallery control instead of the Flexible Height Gallery? Same issue Occurs?

     

    Please consider take a try with standard Gallery control instead of the Flexible Height Gallery, check if the issue is solved.

     

    Also please consider resize the TemplateSize property of your Gallery, e.g. set the TemplateSize property of your Gallery to following:

    Min(Body1.Y + 60, Gallery1.Height - 60)

    Note: The Body1 represents the Comments Label within your Gallery, please replace it with actual Label name from your Gallery

     

    Best regards,

  • StevenZhang Profile Picture
    StevenZhang 155 on at
    Re: Autoheight label in flexbile gallery not work after publish

    Hi Kris,

     

    I am using same version, tried google chrome and Edge.

    here is in editor mode,

    in editor modein editor mode

    here is after publish.

    after publishafter publish

  • Verified answer
    v-xida-msft Profile Picture
    v-xida-msft on at
    Re: Autoheight label in flexbile gallery not work after publish

    Hi @StevenZhang ,

    Could you please share a bit more about your scenario?

    Could you please share a screenshot about your issue within your published app?

    Do you mean that the Auto-Height property of the Label in your Gallery could not work as expected?

     

    Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. The Auto-Height property of the Label works well in my published app.

     

    Please consider run your published app using different browsers, then check if same issue would occur. My PowerApps version is 3.20023.8, please make sure you create your app using the latest version of PowerApps.

     

    If the issue still exists, please consider insert a Normal Gallery rather than a Flexible Gallery in your app, then add a Lable into this normal Gallery and enable "Auto Height" property, check if the issue is solved.

     

    Best regards,

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard