fullscreenmode and rect of a substack on mobile device ?

Monte Goulding monte at appisle.net
Sun Aug 19 21:19:00 EDT 2018



> On 20 Aug 2018, at 10:53 am, Richard Gaskin via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> As long as both messages are sent it may not matter, but that's the thing I'm unclear on: what does orientationChanged tell us on a mobile device that resizeStack doesn't?  When is one sent without the other sent immediately after?

When you have a fullscreenMode set then the stack doesn’t resize unless you either explicitly set the rect or (since 8.1.10) use mobileSetFullScreenRectForOrientations to specify a different rect for the orientation you are moving to. If the stack does not resize then it does not get sent a resizeStack message. Also the stack is sent orientationChanged regardless of the state of allowed orientations so if it’s not an allowed orientation then there may be no change and therefore no resizeStack.

Cheers

Monte


More information about the use-livecode mailing list