show scrollbar only if needed. Fixes #280