Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-988

TextPane puts the caret and selection in the wrong place for empty lines

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.1
    • Component/s: wtk
    • Labels:
      None
    • Environment:
      All

      Description

      If you create an empty TextPane Document, then type Enter to create a new line, the caret remains on the first line. It only moves to the new line when you type another character. The same behavior happens when you try to click with the mouse on the empty line, and when calling "setSelection" to the empty line. All result in the selection being displayed on the line above.

        Attachments

          Activity

            People

            • Assignee:
              rwhitcomb Roger Whitcomb
              Reporter:
              rwhitcomb Roger Whitcomb
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: