Fix glitch when user change orientation

This bug affects screen resolutions A x B with ( B > A)
Merge pull request #2 from casevictor/master

Fix glitch when user change orientation