Fixed navigation bar display with reduced screen width.

Redmine #4445