Fixes issue #1140

Fixes problem with screenmanager on rotated displays (issue #1140)