Fix affix/scrollspy to work with dynamic content and the tree splitter