[ticket/11552] Do not hide all links at once

Do not hide some links as long as their is enough space
to keep them out of dropdown menu

PHPBB3-11552