Caret Position = InlineCssTextArea .getText().length() but it doesn't scroll vertically to the bottom
See original GitHub issue-
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…
Is it a bug?
Issue Analytics
- State:
- Created 7 years ago
- Comments:16 (10 by maintainers)
Top Results From Across the Web
Developers - Caret Position = InlineCssTextArea .getText().length ...
Caret Position = InlineCssTextArea .getText().length() but it doesn't scroll vertically to the bottom.
Read more >JavaFX : After setting text in textArea, setting scroll to bottom in ...
I'm setting caret's position at end of text using length of text. logs.setText(logText); logs.positionCaret(logText.length());. It is working for me. :).
Read more >GenericStyledArea (richtextfx 0.10.3 API) - javadoc.io
If there is no call to requestFollowCaret() at the end of that code, ... will scroll to the top of the document and...
Read more >GenericStyledArea (richtextfx 0.8.0 API) - FXMisc
If there is no call to requestFollowCaret() at the end of that code, the area will not auto-scroll to that section of the...
Read more >Using the scrolling commands - IBM
When the cursor is within a scrollable field, scrolling enables you to ... Within a scrollable field, it is one column less than...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So the issue is maybe done … 😃
Also, I exposed more API in #418 that can accomplish what you desire with
show
-related methods. For example:However, we haven’t made a new release with that code yet.