fullscreenmode and rect of a substack on mobile device ?
Brian Milby
brian at milby7.com
Thu Aug 23 22:02:05 EDT 2018
@ Sannyasin Brahmanathaswami
I was finally able to take some time and load the _r9 version of your demo
stack. When initially loaded, the image did fill the browser window, but
when I pressed the play button it did not take over the entire screen.
When I rotated, it did resize as expected. I'm not sure if the web code
changed or if I just don't see the issue. My test was a iPad 6G. I'm
using 9.0.1rc2 to build my tests.
In your latest response about layout when the stack opens... is that on
Android and iPad? I do not see that issue on my iPhone/iPad. Since the
stack is designed at the Plus size, no surprise on my phone. But it also
resizes properly on load on my iPad. I had my mobileProfile stack
configured with a button to launch your stack (which should be similar to
how you would be using it).
Here's a preOpenCard that you could try:
on preOpenCard
local tRect
if isMobile() then
mobileSetAllowedOrientations "portrait,portrait upside down,landscape
left,landscape right"
end if
put the effective working screenrect into tRect
resizeStack item 3 of tRect, item 4 of tRect
end preOpenCard
I don't see any difference with that code in place for my devices.
Thanks,
Brian
More information about the use-livecode
mailing list