FULL PRODUCT VERSION :
openjdk version "1.8.0_144"
OpenJDK Runtime Environment (build 1.8.0_144-8u144-b01-1-b01)
OpenJDK 64-Bit Server VM (build 25.144-b01, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Linux 4.12.0-2-amd64 #1 SMP Debian 4.12.13-1 (2017-09-19) x86_64 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
TextArea in RTL orientation displays text in wrong position after the control has been resized and before text is changed again.
It seems as though the layout is not updated upon resizing, but only upon text change.
For illustration, see this image: https://i.imgur.com/STN3Voj.png
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Create a TextArea with orientation set to right-to-left.
2. Add some text to the TextArea.
3. Resize the containing parent such that the TextArea itself is resized
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The text should be displayed at the correct position, i.e., at the right edge of the TextArea
ACTUAL -
The text remains in its original position relative to the top-left corner of the TextArea. If the TextArea was made wider this means the text will seem "floating" in the middle of the control. If it was made narrower - some or even all of the text may not be visible, as it is presumably rendered outside of the visible portion of the content.
REPRODUCIBILITY :
This bug can be reproduced always.
edit 2024/11/20:
This bug makes it impossible to create a headful test for https://bugs.openjdk.org/browse/JDK-8342233