Truncate caret of text input field at top & bottom boundaries.