Fixed setting the orientation so it uses the current window dimensions, not the context (the initial context height/width is 0). Fixes #242 in argos-saleslogix.