Re: RFR: 8178368: Right and Center alignment of text field works incorrectly [v2]

2023-01-05 Thread Karthik P K
On Thu, 5 Jan 2023 08:00:11 GMT, Karthik P K wrote: >> When Text width was more than TextField width, the logic to update >> `textTranslateX` in `updateCaretOff` method was causing the issue of >> unexpected behavior for Right and Center alignment. >> >> Made changes to update `textTranslateX`

Re: RFR: 8178368: Right and Center alignment of text field works incorrectly [v2]

2023-01-05 Thread Karthik P K
> When Text width was more than TextField width, condition to update > `textTranslateX` was not getting satisfied as calculated value was negative. > Hence the text was getting aligned to previous `textTranslateX` value. > > Added else block to update the `textTranslateX` value when calculated v