Fixes issue #18 Portrait mode orientation problems. Slightly hacky solution but will take a closer look when I have more time.