fixes #9634: turn off overflow-y when the navbar is re-expanded into horizontal mode