fixing bug causing navigation controller to animate margins on resize