Handle status bar rotation

It's far from perfect but it works