/views/: fixed a problem when the window would be resized and the navigation menu closed