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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Check if a label's scr...
Power Apps
Unanswered

Check if a label's scrollbar is visible or if the text field isn't long enough to make it appear

(0) ShareShare
ReportReport
Posted on by 56

Hello,

 

I have a gallery with a label in it. The gallery is connected to a SharePoint list text field, which is displayed in the aforementioned label. The label's overflow is set to scroll. Each gallery item's text field has different lengths of text, so some labels will have a scrollbar visible, and some will not because the text is not overflowing.

 

Is there a way to tell if the scrollbar is visible or not? I've thought of using the length of the line height in combination with the length of the text field and font size to do some calculations, but not sure if there's an easier way.

 

I appreciate any help with this!

Categories:
I have the same question (0)
  • Gerard Simpson Profile Picture
    2,987 Moderator on at

    Hi @JChouinard2016 - What is your objective? Are you trying to avoid scroll bars?

     

    If so, you can use a flexible height gallery and then enable the 'Auto height' property in the Label control.

     

    Hope this helps

  • JChouinard2016 Profile Picture
    56 on at

    Hi AmDev,

     

    I have a button layered above the label in the bottom right corner of it. When the scroll bar is visible, the button blocks part of the scroll bar. Knowing if the scrollbar is visible or not, I could use an If statement to move the button slightly to the left so it isn't blocking the scrollbar.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard