Fix: avoid unnecessary scrolling

Most current browsers will scroll anyway if needed. This fixes #499.