Fix to do not use transform information when getting caret rect.