Re: RFR: 8178368: Right alignment of text fields works incorrectly

2022-12-23 Thread Karthik P K
On Wed, 21 Dec 2022 10:58:50 GMT, Karthik P K wrote: > 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

Re: RFR: 8178368: Right alignment of text fields works incorrectly

2022-12-23 Thread Kevin Rushforth
On Fri, 23 Dec 2022 10:17:04 GMT, Karthik P K wrote: > I will fix the issues with text alignment as part of this bug. In which case, I recommend to update the title of the JBS bug and this PR, since it is more than just right alignment that will be fixed. - PR: https://git.openjdk

Re: RFR: 8178368: Right alignment of text fields works incorrectly

2022-12-23 Thread Karthik P K
On Wed, 21 Dec 2022 10:58:50 GMT, Karthik P K wrote: > 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

Re: RFR: 8178368: Right alignment of text fields works incorrectly

2022-12-22 Thread Andy Goryachev
On Wed, 21 Dec 2022 10:58:50 GMT, Karthik P K wrote: > 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

Re: RFR: 8178368: Right alignment of text fields works incorrectly

2022-12-22 Thread Ajit Ghaisas
On Wed, 21 Dec 2022 10:58:50 GMT, Karthik P K wrote: > 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

Re: RFR: 8178368: Right alignment of text fields works incorrectly

2022-12-21 Thread Karthik P K
On Wed, 21 Dec 2022 10:58:50 GMT, Karthik P K wrote: > 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

Re: RFR: 8178368: Right alignment of text fields works incorrectly

2022-12-21 Thread Andy Goryachev
On Wed, 21 Dec 2022 10:58:50 GMT, Karthik P K wrote: > 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

Re: RFR: 8178368: Right alignment of text fields works incorrectly

2022-12-21 Thread Andy Goryachev
On Wed, 21 Dec 2022 10:58:50 GMT, Karthik P K wrote: > 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

RFR: 8178368: Right alignment of text fields works incorrectly

2022-12-21 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 value is n