RFR: 8178368: Right alignment of text fields and alignment of prompt text works incorrectly
Karthik P K
kpk at openjdk.org
Fri Feb 24 06:36:15 UTC 2023
On Thu, 23 Feb 2023 17:40:05 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
> It might behave differently when the caret is at the rightmost position next to the control edge, in which case the behavior is correct. Perhaps there ought to be some conditional logic implemented, but the way it behaves now when the caret is close to the left edge feels unnatural.
>
Yes this behavior looks unnatural. I see this issue in the mainline as well.
Basically this behavior is observed because of the logic that, when we start typing in text field with RIGHT alignment, left side of the text is scrolled. So from whichever position we start inserting new characters, left side of the text gets scrolled. Because of the same behavior the newly inserted text scrolls to the left when we start typing from the first visible character. I will analyze a bit more on this behavior.
-------------
PR: https://git.openjdk.org/jfx/pull/980
More information about the openjfx-dev
mailing list