when I remove the scale to fit, when I view my published app on the web it now left aligns to the screen. Is there any way to center align it?
Solved! Go to Solution.
Setting the form "X" value to:
Max(0,(Parent.Width/2)-(FormWidth/2))
Will always place the form in the center of the screen, or to the left of the screen in case you shrink the window.
Also for this to work you need to disable screen fit, and have the screen width set to Max(App.Width, App.DesignWidth)
Hopefully this helps someone else.
Normally I would, but my form is a bit big cause its meant to be a form for desktop, so scale to fit will make the fields so small that they are unreadable.
Setting the form "X" value to:
Max(0,(Parent.Width/2)-(FormWidth/2))
Will always place the form in the center of the screen, or to the left of the screen in case you shrink the window.
Also for this to work you need to disable screen fit, and have the screen width set to Max(App.Width, App.DesignWidth)
Hopefully this helps someone else.
I have also facing this problem . In personal environment its working fine. But in published in another environment its not center aligned. Please help to resolve this.
I have a canvas applicaiton and I want the app in the center and if I reduce the browser size it should automatically fit the size. I got it fixed by disabled optimize embedding appearance and resize based on the browser but not fit in center . If I enabled lock aspect orientation, it appears center and not resizing. Please help me how to achieve this
Power Apps tells me FormWidth is gibberish.