RFR: 8178368: Right and Center alignment of text field works incorrectly [v2]
Karthik P K
kpk at openjdk.org
Thu Jan 5 08:00:11 UTC 2023
> 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.
Karthik P K has updated the pull request incrementally with one additional commit since the last revision:
Fix textfield right and center alignment issues
-------------
Changes:
- all: https://git.openjdk.org/jfx/pull/980/files
- new: https://git.openjdk.org/jfx/pull/980/files/2238ec41..337ad7ac
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jfx&pr=980&range=01
- incr: https://webrevs.openjdk.org/?repo=jfx&pr=980&range=00-01
Stats: 63 lines in 2 files changed: 44 ins; 9 del; 10 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