Fix TextInput padding_x being ignored when calculating cursor position

Fixes issue #1960.