cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

How to make phone app/layout appear in middle of screen when running from desktop?

Hello,

 

We designed a PowerApps app using the default phone layout- a few data entry forms which was mainly used when employees were traveling.  Due to the current situation - people are not traveling and are using the app on their laptops.  On the laptop - all of the forms appear way to the left of the screen.  Any way to make these appear in the center of the desktop screen?  Or is there a way to convert  phone app layouts to tablet?

Appreciate any help you can provide.

 

Thanks,

Dan

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

Hi @lesotho_kid ,

Have a look in your settings under Experimental Features and see if this is turned on - if so, turn it offOptimizeEmbedding.png

 

 

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

3 REPLIES 3
Super User III
Super User III

Hi @lesotho_kid ,

Have a look in your settings under Experimental Features and see if this is turned on - if so, turn it offOptimizeEmbedding.png

 

 

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

I would like to add more comment on @WarrenBelz 's reply.

 

Here is an official document:

 

Create responsive layouts in canvas apps

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/create-responsive-layout

 

Width = "Max(App.Width, If(App.Width < App.Height, App.DesignWidth, App.DesignHeight))"

Height = "Max(App.Height, If(App.Width < App.Height, App.DesignHeight, App.DesignWidth))"


The following formula is the one I made to keep components such as labels and buttons center X-position:

(Max(App.Width, If(App.Width < App.Height, App.DesignWidth, App.DesignHeight)))/2 - (SubmitTicketLabel.Width/2)

Summary: ((Total Width) / 2) - (Width of Current Component/2)

 

Y-position would be as below: (Haven't tested)

 

(Max(App.Height, If(App.Width < App.Height, App.DesignHeight, App.DesignWidth)))/2 - (SubmitTicketLabel.Height/2)

 

Hope this helps.

Thanks @WarrenBelz  and @JisungHan 

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (6,386)