Corect text dimensions calculated for proper scrolling.