I would go and say that your width and height are based on the screen and not on the holding position, that measnt on tilt your width is actually the real height. On fixing this problem you could go ahead and set:
a.width = Screen.height
a.height = Screen.width
if the mobile device is hold crosswise.
↧