Skip to content

Caret Position = InlineCssTextArea .getText().length() but it doesn't scroll vertically to the bottom #433

@goxr3plus

Description

@goxr3plus
  • Java Version: jdk1.8.0_112

  • RichTextFX Version: richtextfx-fat-0.6.10.jar

I am using :

InlineCssTextArea textArea = new InlineCssTextArea();
textArea.setEditable(false);
textArea.setFocusTraversable(false);

and i am trying to scroll programmatically at the bottom :

//It returns the maximum length of the InlineCssTextArea  `text`
System.out.println(textArea.getText().length());
System.out.println(textArea.getCaretPosition());
   		    
//It doesn't scroll to the end
textArea.positionCaret(textArea.getText().length());

The problem is that the length of InlineCssTextArea text is 830 even if the caret is positioned at 830 it doesn't scroll to the bottom...

screenshot49984

Is it a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions