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 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
WarrenBelz
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (78,829)