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.

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,983)