Use MutationObserver to decide when to update scrollpanes