Fixing resize navbar bug.

Signed-off-by: Ben Corlett <bencorlett@me.com>