Fixes Center/Right aligned cursor placement

Fixes Center/Right aligned cursor placement by mouse click when the text box is scaled