Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8125138

Text#getDecorationShapes() should be lazy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 8
    • javafx

      currently everytime that seleciton start, selection end, caret position, caret bias is changed the decoration shapes are re-done

      for example,
      textNode.setImpl_caretPosition(caretOffset);
      textNode.setImpl_caretBias(true);
      textNode.setImpl_selectionStart(anchorOffset);
      textNode.setImpl_selectionEnd(anchorOffset);

      causes the caret and selection shape to be redone 4 times each


      these shapes should be only done when
      getImpl_selectionShape() or getImpl_caretShape() are called.

            fheidric Felipe Heidrich (Inactive)
            fheidric Felipe Heidrich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: