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

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
WarrenBelz
Super User
Super User

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
WarrenBelz
Super User
Super User

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.

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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (1,907)