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

2023-02-16 Thread Karthik P K
On Fri, 10 Feb 2023 05:39:33 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 [v4]

2023-02-16 Thread Andy Goryachev
On Fri, 10 Feb 2023 05:39:33 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 [v4]

2023-02-16 Thread Kevin Rushforth
On Fri, 10 Feb 2023 05:39:33 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 [v4]

2023-02-10 Thread John Hendrikx
On Fri, 10 Feb 2023 13:49:43 GMT, Karthik P K wrote: > I checked with HTML textfield and swing JTextField. In both the cases, the > text gets aligned to the left (beginning of the text is shown) regardless of > alignment type when text length is more than text field length. In html > textfield

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

2023-02-10 Thread Andy Goryachev
On Fri, 10 Feb 2023 05:39:33 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 [v4]

2023-02-10 Thread Karthik P K
On Fri, 10 Feb 2023 05:39:33 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 [v4]

2023-02-10 Thread John Hendrikx
On Fri, 10 Feb 2023 05:39:33 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 [v4]

2023-02-09 Thread Karthik P K
> 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` in `updateCaretOff` method only when > text width is less