Attempted fix for #2420: re-check line heights after updating doc height/scrollbars