Fixed hiding navigation container when disable and enabling tabs on top.

Closes #764