Correct positioning after rotation in iPad

Implemented correct positioning after autorotation on iPad.
Possible additionally fixes issues #50, #42, #30