JDK-8189167 : Text position of TextArea is wrong after resizing in RTL-oriented TextArea
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: 8,9,10
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2017-10-11
  • Updated: 2024-11-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Blocks :  
Relates :  
Description
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
Comments
Issue is reproducible in JDK 8 , 9 10. JDK results (WIndows 10) ------------- 8 GA : Fail 8u40 : Fail 8u144 : Fail 8u152: Fail 9-ea+181 : Fail 10-ea+23 : Fail ------------- PFA image provided by submitter (STN3Voj - Imgur.png)
11-10-2017