title: How to set the vertical scroll in RichTextFx
body: <p>I want to be able to set the vertical scroll to the top or the bottom of a <code>InlineStyleTextArea</code> in <a href="https://github.com/TomasMikula/RichTextFX" rel="nofollow">RichTextFX</a>. By the looks of <a href="https://github.com/TomasMikula/RichTextFX/issues/130" rel="nofollow">this</a> thread, <code>moveTo(..)</code> should do the trick. But it doesn't work for me. I've also tried <code>selectRange(..)</code> and <code>positionCaret(..)</code>. Below is my test program, have I misunderstood the "workaround of repositioning the caret" mentioned in the thread linked above?</p>
  
  <pre><code>import org.fxmisc.richtext.InlineStyleTextArea;
  
      import javafx.application.Application;
      import javafx.scene.Scene;
      import javafx.scene.layout.HBox;
      import javafx.stage.Stage;
  
      public class RichTextFXTest extends Application {
  
      @Override
      public  void start(Stage stage) {
  
          InlineStyleTextArea&lt;StyleInfo&gt; area = new InlineStyleTextArea&lt;&gt;(
                  new StyleInfo(), styleInfo -&gt; styleInfo.toCss());
                  area.setPrefSize(300, 300);
          area.setWrapText(false);
                  area.setEditable(false);
  
                  StringBuilder largeText = new StringBuilder();
  
                  for (int i = 0; i &lt; 5000; i++) {
                  largeText.append("Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n");
                  }
  
                  area.replaceText(largeText.toString());
  
                  // None of the two rows below works.
                  //area.selectRange(1000, 1100);
                  //area.moveTo(1100);
                  //area.positionCaret(1100);
  
                  HBox rootLayout = new HBox();
                  rootLayout.setPrefSize(300, 300);
                  rootLayout.getChildren().add(area);
  
                  Scene scene = new Scene(rootLayout);
                  stage.setScene(scene);
                  stage.show();
       }
  
       // Style class
          class StyleInfo {
              String toCss() {
                  return "-fx-fill: red;
              } 
      }
  
      public static void main (String[] args) {
              launch();
      }
  }
  </code></pre>