fix #406 Scrollbars in splitter with nested templates

Extra scrollbars are displayed when templates are nested inside a splitter widget