FULL PRODUCT VERSION :
1.8.0.121
but also on earlier Java 8 versions
ADDITIONAL OS VERSION INFORMATION :
Windows 7
Linux (Ubuntu)
EXTRA RELEVANT SYSTEM CONFIGURATION :
-Dcom.sun.javafx.touch=true
A DESCRIPTION OF THE PROBLEM :
Say we have an application with some textfields on a touch-enabled system. When touching the text field, the caret and selection handles show as expected - but only if the textfield is set to left-aligned. In case of a centered or right aligned text the handles' offset seems to be computed incorrectly
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Ensure that Platoform has the TOUCH cond feature enabled
Develop a mini app with 3+ textfields, set the text alignment to LEFT, CENTER and RIGHT respectively.
Run the app and tap into a textfield. Only the tf with LEFT aligned text will display the caret handle in the correct position.
Similar effect can be seen for the selection handles
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
caret and selection handles on the correct position regardless of text alignment
ACTUAL -
Only the tf with LEFT aligned text will display the caret handle in the correct position.
Similar effect can be seen for the selection handles
ERROR MESSAGES/STACK TRACES THAT OCCUR :
no crashes, no error logs
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
TextField tf=new TextField();
tf.setText("123456789");
tf.setAlignment(Pos.BASELINE_RIGHT);
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Copying and modifying source code of TextFieldSkin and TextFieldBehaviour
Using these modfied files in the textfield via setSkin
No other WA known so far
1.8.0.121
but also on earlier Java 8 versions
ADDITIONAL OS VERSION INFORMATION :
Windows 7
Linux (Ubuntu)
EXTRA RELEVANT SYSTEM CONFIGURATION :
-Dcom.sun.javafx.touch=true
A DESCRIPTION OF THE PROBLEM :
Say we have an application with some textfields on a touch-enabled system. When touching the text field, the caret and selection handles show as expected - but only if the textfield is set to left-aligned. In case of a centered or right aligned text the handles' offset seems to be computed incorrectly
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Ensure that Platoform has the TOUCH cond feature enabled
Develop a mini app with 3+ textfields, set the text alignment to LEFT, CENTER and RIGHT respectively.
Run the app and tap into a textfield. Only the tf with LEFT aligned text will display the caret handle in the correct position.
Similar effect can be seen for the selection handles
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
caret and selection handles on the correct position regardless of text alignment
ACTUAL -
Only the tf with LEFT aligned text will display the caret handle in the correct position.
Similar effect can be seen for the selection handles
ERROR MESSAGES/STACK TRACES THAT OCCUR :
no crashes, no error logs
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
TextField tf=new TextField();
tf.setText("123456789");
tf.setAlignment(Pos.BASELINE_RIGHT);
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Copying and modifying source code of TextFieldSkin and TextFieldBehaviour
Using these modfied files in the textfield via setSkin
No other WA known so far