I'm using the magical script below to fix the problem of resizing on the different iPhones. But it only works for Portrait orientation. The landscape cards are broken up and not resized or reoriented. (Orientation changes do work if I don't include the fullscreenmode code in preopenStack, but resizing doesn't work, then.) I would be so grateful if anyone can share some insights into solving this problem. I'm attaching a screenshot of a landscape card.
on preopenStack
if the environment is "mobile" then
set the fullscreenmode of me to "letterBox"
set the acceleratedrendering of me to true
end if
end preopenStack
Can't resize screen for both portrait and landscape
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 858
- Joined: Wed Jun 24, 2009 1:17 pm
- Contact:
Re: Can't resize screen for both portrait and landscape
Hi SusanB - I've just checked the dictionary and apparently "letterbox" preserves the aspect ratio - so if you want orientation changes in you app you'll have to choose a different setting for fullscreenmode (perhaps "noborder"? but each option has different benefits and downsides...)
fullscreenmode is not a 'silver bullet' that solves EVERY issue. Depending on what you are trying to achieve it's likely you'll need code that keeps your GUI nice that lives inside (or is called from) resizestack handlers in each card's preopencard events
Let us know how you get on and come back with questions if you need to
Dave
fullscreenmode is not a 'silver bullet' that solves EVERY issue. Depending on what you are trying to achieve it's likely you'll need code that keeps your GUI nice that lives inside (or is called from) resizestack handlers in each card's preopencard events
Let us know how you get on and come back with questions if you need to
Dave
"...this is not the code you are looking for..."
Re: Can't resize screen for both portrait and landscape
Thank you , Dave! It turns out I had the setting of each card's "set the width and height" within "If environment is development". I commented out the "if environment is development "in the preopencard script of each card, and everything is now fine. What a relief!!
-
- VIP Livecode Opensource Backer
- Posts: 858
- Joined: Wed Jun 24, 2009 1:17 pm
- Contact:
Re: Can't resize screen for both portrait and landscape
Well done - there's nothing like the feeling when you fix a hard-to-fix bug!
"...this is not the code you are looking for..."