Fix scrolling when no layout is used. See #5

This commits fixes the following error:

   TypeError: sidebar.offset(...) is undefined