Hey Shell,
I spent some time fighting those scroll bars, so I still remember a little bit. Some pointers that might help, not sure what you've tried...
- The element with the scrollbars needs to be on the DOM when 'setupScrolling' is called
- 'setupScrolling' will eventually bind listeners to call 'recalculateScrolling' on page 'resize' or 'content:changed'. Is this being called with $('#main_content') as an argument? You could comment out the setupScrolling in sidebar_view to make this easier
- I don't remember the details, but there are certain parts of some pages that just really don't like being scrolled due to the html/css setup for some reason. You'd see it try to scroll, but elements would end up in unexpected places. If you are in this situation, you would be the first person to fix it unless Robbie/Travis pulled off some magic after I left.
Charles