Handle resize by navigation class.