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 / Can I show a horizonta...
Power Apps
Unanswered

Can I show a horizontal gallery header and data on 2 lines when viewed on small sized screens

(1) ShareShare
ReportReport
Posted on by 1,811 Super User 2024 Season 1

I have this horizontal gallery which contain 10 items each which have Width = Parent.Width*0.1 :-

 

johnjohnPter_1-1701170637246.png

 

 

and above the gallery we have a set of 10 labels with Width = Parent.Width*0.1, as follow:-

 

johnjohnPter_0-1701170573431.png

 

now on small sized screens the labels looks not very user friendly, as follow:-

 

johnjohnPter_2-1701170775116.png

 

so i am thinking if there is a way to divide the header labels & the gallery items into 2 lines when viewed on small sized screen? is this possible? so the headers will be as follow and the gallery items as well:-

 

johnjohnPter_3-1701170931283.png

 

 

any advice ? or if there is a better way to manage this on small sized screens?

 

Thanks

 

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

    Hi @johnjohnPter ,

    Try This And Let Me Know

    Write this Code Width property of your labels and gallery items:

    Width = If(App.Width < 640, Parent.Width * 0.2, Parent.Width * 0.1)

    Fuel our success! 🚀 Give a thumbs up and click 'Solution Accepted' to supercharge our community. Your actions speak volumes!
    Warm regards,
    Muhammad Ali

     

  • johnjohnPter Profile Picture
    1,811 Super User 2024 Season 1 on at

    @M_Ali_SZ365 this will show a horizontal scroll bar to view the items on small sized screens.. this will not divide the items on 2 lines.

  • M_Ali_SZ365 Profile Picture
    1,110 on at

    @johnjohnPter ,

    Try This

    Set WrapCount of the gallery to adjust the number of items per line based on screen size:

    WrapCount = If(App.Width < 640, 5, 10)

    For headers, duplicate labels for the second line and set Visible property based on screen width:

    Visible = App.Width < 640

    Fuel our success! 🚀 Give a thumbs up and click 'Solution Accepted' to supercharge our community. Your actions speak volumes!
    Warm regards,
    Muhammad Ali

  • johnjohnPter Profile Picture
    1,811 Super User 2024 Season 1 on at

    @M_Ali_SZ365 i have the wrap count = 1 ,, setting your formula:-

     

    WrapCount = If(App.Width < 640, 5, 10)

     

    will corrupt the layout... also i do not want to duplicate the headers each line will have different labels... bot sure we are talking about the same issue..

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard