RFR: 8178368: Right alignment of text fields works incorrectly

Andy Goryachev angorya at openjdk.org
Wed Dec 21 23:21:58 UTC 2022


On Wed, 21 Dec 2022 10:58:50 GMT, Karthik P K <kpk at openjdk.org> 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 to update the `textTranslateX` value when calculated value is negative.
> 
> Added unit test to validate the fix.

So the question is - do we want to change the way text is initially aligned to match the prompt text, or not?

-------------

PR: https://git.openjdk.org/jfx/pull/980


More information about the openjfx-dev mailing list