RichTextArea: issues with StyleAttributeMap.FIRST_LINE_INDENT

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: jfx25
    • Component/s: javafx
    • None

      Setting FIRST_LINE_INDENT breaks the caret shape, selection shape, and keyboard navigation at the start of paragraph.

      To reproduce, use the latest Monkey Tester
      https://github.com/andy-goryachev-oracle/MonkeyTest

      - select the RichTextArea page
      - select the RichTextArea model
      - select Control -> Context Menu -> RichTextArea menu
      - type in some text, right click and select Paragraph Styles -> First Line Indent -> 50

      Observe the following issues:

      1. the caret and selection should not be allowed at the left edge of the paragraph on the first line
      2. selection of the indentation should not be allowed
      3. selection/caret position is off in the whole paragraph by what appears to be one symbol
      4. empty paragraph with first line indent has a height of 1 pixel

      The current implementation is not good, the real solution depends on JDK-8231014

            Assignee:
            Andy Goryachev
            Reporter:
            Andy Goryachev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: