Fix auto-fit to work with no links div.