Skip to main content

Notifications

Community site session details

Community site session details

Session Id : K8/MzoCiJ+NOL5Ff8sx0Gm
Power Apps - Building Power Apps
Answered

How to change power app orientation based on device?

Like (0) ShareShare
ReportReport
Posted on 12 Aug 2021 14:33:04 by 166

I made a power app, and I want to expose it on mobile phones and also embed the same power app into a SP Online site.

 

I set the mode to be portrait so it looks fine on mobile, but the "lock orientation" is disabled so it should change when the phone is rotated. But on a SP Online page using the power app webpart widget, it always looks in portrait mode, leaving a lot of white space around the app. Is there a way I can make the power app display in landscape mode in SP Online, or do I need to make 2 separate power apps (1 for mobile and 1 for tablet)?

Categories:
  • R58395 Profile Picture
    166 on 14 Aug 2021 at 19:05:21
    Re: How to change power app orientation based on device?

    Thanks that was helpful. Also the techniques described here helped too

     

    https://www.youtube.com/watch?v=uABDL7_EDCs&list=RDCMUCvBYTqRx-n_8KzFO0MJlUVw&start_radio=1&t=155s&ab_channel=RezaDorrani

  • Verified answer
    poweractivate Profile Picture
    11,078 Most Valuable Professional on 12 Aug 2021 at 20:25:26
    Re: How to change power app orientation based on device?

    @R58395 

     

    To do this you would disable Scale to Fit, use the larger size as the basis, and use dynamic formulas to, based on the available overall screen size, dynamically adjust how it looks to make a responsive layout.

     

    More information here: How to create responsive or dynamic layout in Power Apps (docs.microsoft.com) 

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard
Loading started