Stacks and Device Rotation
Sarah Reichelt
sarah.reichelt at gmail.com
Wed May 25 18:32:10 EDT 2011
On Thu, May 26, 2011 at 2:16 AM, Dan Friedman <dan at clearvisiontech.com> wrote:
> Let's say you have an iPad app with two stacks. You have resizeStack messages in them to resize/locate objects when the user rotates the device. So with the device in portrait mode, your app launches and stack 1 is open. The user clicks a button and stack 2 is opened. Then they rotate the device to landscape. Everything on stack 2 repositions correctly and everyone is happy. Now, they click a button and stack 2 is closed to reveal stack 1 again. Stack 1 is still formatted for portrait! It does switch over, but we "see" that happen.
>
> Attempts to resize stack 1 when the device is rotated causes other drawing abnormalities which are immediately corrected, but we "see" it get corrected.
How about hiding the stack that is in the background and when bringing
it to the front, send it a resize message and then make it visible.
Or send a resize message to all the stacks whenever it is received by
any of them.
Cheers,
Sarah
More information about the use-livecode
mailing list