Make it also work in snapped and portrait modes.