Fix scrolling when no layout is used. See #5

This commits fixes the following error:

   TypeError: sidebar.offset(...) is undefined
Merge pull request #6 from jcfr/5-fix-empty-layout-scrolling-jcfr

Fix scrolling when no layout is used. See #5