you need to trigger the script on every layout that needs to account for rotation. So set up your script to run on all six of your layouts.
That's why the trigger is called onLayoutSizeChange, and not onWindowSizeChange.
I have triggered the script on every layout...
1. Login_Orientation - Login_Landscape and Login_Portrait
2. Scan_Orientation - Scan_Landscape and Scan_Portrait
3. Process_Orientation - Process_Landscape and Process_Portrait
yet, it skips the Login_Orientation and runs the Scan_Orientation thus not showing up the Login Layout at all..
any idea as to why this could be happening
Sounds like your scripts are not coded correctly. Can you post a demo of your file?