Made the navbar collapsed by default in portrait orientation.
Made the navbar always expanded in landscape orientation.