Use Editor::getVisibleRowRange instead of the rendered row range

The rendered row range is larger than the visible row range to force the
DOM to break up repaints. This is a more accurate method to us.