Fixes a bug where the frame of the original text view was not taken into account.