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 / displaying a vertical ...
Power Apps
Unanswered

displaying a vertical gallery that has multiple fields with multi-line text with just one scroll - not mulitple scrolls for multiple fields.

(0) ShareShare
ReportReport
Posted on by 13

Hi all,

 

I would like to display a vertical gallery which is a list of entries. Each data entry has multiple fields that are multiline text.

 

I wish the user to be able to scroll down(particularly on a mobile device) and see all text using just a single scroll function.

 

Currently the gallery is within a container, setup like so:

 

Area:

(multiline text entry)

Task:

(multiline text entry)

Standard operating procedure:

(multiline text entry)

 

**repeat for next data entry e.g.**

 

Area:

(multiline text entry)

Task:

(multiline text entry)

Standard operating procedure:

(multiline text entry)

 

**and so forth**

 

The fields are set as text labels, and each text label seems to have a set position x,y. I don't see how to vary this position depending on how much text there was in the previous text label(given the texts are multiline of variable length).

 

The labels can be fixed height(which means scroll would be have to turned on for each field) but then i get multiple scroll functions within a view, instead of just being able to scroll down and see an entire page with one scroll like on a webpage.

 

Or the labels can be autoheight, but then they overlap with the next text label further down the page(given each text label seems to have to be at a set height).

 

How do i get around this so a user can just use one scroll function to go down the page and see all the mutliline text entries one after another? Many thanks!! Tom

Categories:
I have the same question (0)
  • v-mengmli-msft Profile Picture
    on at

    Hi @tom28 ,

     

    Do you want to set the height of the Label in the Gallery to be flexible height?

    Maybe you can try this:

    Set the height of the Label:

    Len(ThisItem.columnName)/10*20

    “10”is the number of characters shown in each line.

    “20”is the height of each line.

    Change the value according to your needs.

    vmengmlimsft_0-1693376301011.png

     

    Best regards,

    Rimmon Li

  • v-mengmli-msft Profile Picture
    on at

    Hi @tom28 ,

     

    How is the situation? Have you solved your problem? If you find my answer helpful, you can accept it as a solution to help more people trapped in this problem. 

     

    Best regards,

    Rimmon Li

  • tom28 Profile Picture
    13 on at

    Many thanks Rimmon!

     

    I ended up setting the Y value for each label in the formula bar referring to the label above it using info here:

     

    https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/gallery-dynamic-sizing

     

    setting the y value

     

    taskslabel.Y + taskslabel.Height + 5

     

    I also used a listbox with variable height that autosized based on the number of entries in the table for the listbox:

    CountRows(ThisItem.swps)*100+100

     

    Thus I was able to have both multiple text label multiline display fields and mutiline Listboxes of variable height all showing on one screen with one continuous scroll.

     

    See screenshots attached. Many thanks for your help Rimmon!

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