To elaborate on that…

If you have a card that is 1024x768, running on a device that is 1920x1080, 
showAll will make you see the 1024x768, with an extra 171 pixels either side, 
to make 1366x768. That is then scaled up to fill the 1920x1080.

An object in the upper left corner would have its top at zero, but it’s left 
would want to be at -171. You can calculate that -171 like this:

(1024 - 768/1080*1920)/2

More generally, the left edge is the card width minus the card height divided 
by the device height, times the device width. All divided by 2.
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to