Use device orientation change due to modals

ViewControllers in the panel navigation controller stack don't rotate when there is a modal on visible.

Fixes #300