Fix for caret display that was broken in some cases (body scrolls rather than editable scrolls).