Using screen.availWidth only returns the horizontal resolution of the primary monitor. It is fairly easy to half solve the problem by doing something like self.moveTo(screen.availWidth+1, 0), this moves the window to the second monitor. However, my user base is a mixture of single and dual-screen setups, doing the above under a single screen setup results in the window moving off-screen.
var size = screen.availWidth * 0.5;
Any ideas? TIA.