Oh, haha glad you got it working. Though, when I said App.Height/Width formulas I did not mean precisely App.Height/App.Width etc, was just typing lazy and saying all my location and size formulas reference app.width & app.height and used a / instead of & app. to shorten it. But the formula you ended up with can also be rewritten as
If(App.Width>App.Height,App.Width,App.Width*0.5625)
to look a little more normal
Here are the settings I use personally to keep everything adaptive

Click SCREEN name, and above be sure Width and Height are Set to App.Width & App.Height
Controls that are full screen width are App.Width for width
As you can see even when switching to a wide screen this control adapts
So as you can see above, I have changed the Width & Height Settigns for EACH SCREEN to App.Width & App.Height respectively. The default is Max(App.Width, App.DesignWidth) which can be a problem because say you DESIGN the app in a 1024 wide canvas then drop down into a device that is 960, well its going to take the largest of the two, which is the design width of 1024 and try to make all your controls that size, which will be larger than the 960 you have in the smaller device.
So once all your screens are set to App.Width & App.Height as their values then the controls in the screen itself can reference app.height & width properly (if its still set to max main issue is it becomes hard to do things like swipe out of the app) so for example in the image above one control (the light box) is full width in both mobile phoen size, and in browser size because its width is set to app.width. You can also do things like App.Width * .5 for one half screen width or .9 for 90% etc.
then centering controls liek app.width/2-self.width/2
once you get the hang of it this is the best way to design responsive apps really