Fix caret cropping using clip rectangle.