RFR: 8178368: Right alignment of text fields works incorrectly
Karthik P K
kpk at openjdk.org
Wed Dec 21 11:04:43 UTC 2022
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.
-------------
Commit messages:
- Fix for TextField right alignement issue
Changes: https://git.openjdk.org/jfx/pull/980/files
Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=980&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8178368
Stats: 28 lines in 2 files changed: 28 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jfx/pull/980.diff
Fetch: git fetch https://git.openjdk.org/jfx pull/980/head:pull/980
PR: https://git.openjdk.org/jfx/pull/980
More information about the openjfx-dev
mailing list