With script trigger OnLayoutSizeChange, I was trying to restrict only portrait layout on iPad, but with no success.
My script performs Get(WindowOrientation) and if returns < 1, it will do script step Go to Layout [mylayout | iPad | Portrait]
However the layout still switches and resizes to landscape on rotating the iPad. I think I have missed something, and would like to find out if anyone has done similar actions and able to lock the view on iPad. Thanks!
I have more success using get window content width instead of window orientation. I also run two script triggers, one when the layout opens and the other is OnlayoutSizechange. The script is something like
Do what you want
Do something else
There should have been a less than sign in the first line of the scripts. It looks like $lt replaced it.