Having troubles with multiple orientations [solved]
Posted: Tue May 25, 2021 3:06 pm
Hello everyone,
I am working on an app that has one main stack and several substack. The orientation of the main stack is portrait and the orientation for the substacks are landscape. In the stack script, I have imposed the orientation for the stacks.
When I call a substack it opens with the proper orientation. But when I close the substack, all the objects are now all the way down of the main stack and the orientationChanged handler is not deal with.
I am using Livecode Community Plus 9 on a Windows 10 laptop.
on the main stack script
on preOpenStack
if the environment is "mobile" then
mobileSetAllowedOrientations "portrait"
set the fullScreenMode of me to "exactfit"
set the acceleratedRendering of me to true
mobileLockIdleTimer
mobileSetFullScreenRectForOrientations "portrait","0,0,414,736"
end if
end preOpenStack
on the substack script
on openStack
if the environment is "mobile" then
mobileSetAllowedOrientations "landscape left"
mobileSetFullScreenRectForOrientations "landscape left","0,0,960,540"
set the fullScreenMode of me to "exactfit"
set the acceleratedRendering of me to true
end if
end openStack
Regards,
paskr18
I am working on an app that has one main stack and several substack. The orientation of the main stack is portrait and the orientation for the substacks are landscape. In the stack script, I have imposed the orientation for the stacks.
When I call a substack it opens with the proper orientation. But when I close the substack, all the objects are now all the way down of the main stack and the orientationChanged handler is not deal with.
I am using Livecode Community Plus 9 on a Windows 10 laptop.
on the main stack script
on preOpenStack
if the environment is "mobile" then
mobileSetAllowedOrientations "portrait"
set the fullScreenMode of me to "exactfit"
set the acceleratedRendering of me to true
mobileLockIdleTimer
mobileSetFullScreenRectForOrientations "portrait","0,0,414,736"
end if
end preOpenStack
on the substack script
on openStack
if the environment is "mobile" then
mobileSetAllowedOrientations "landscape left"
mobileSetFullScreenRectForOrientations "landscape left","0,0,960,540"
set the fullScreenMode of me to "exactfit"
set the acceleratedRendering of me to true
end if
end openStack
Regards,
paskr18