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

TextArea wrapText=true computes wrong preferredHeight

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.5
    • Component/s: wtk-terra
    • Labels:
      None

      Description

      TextArea with

      {wrapText:true}

      and very long text, embedded in a ScrollPane with ScrollBarPolicies (FILL,AUTO): most of the time the height of the TextArea is computed wrong. See attached demo: the TextArea doesn't display all 100 sentences. I set a yellow background for TextArea and a blue background for ScrollPane so that you can see their bounds.

      It gets worse when you start resizing the host frame. The TextArea content "jumps" around, sometimes displaying correctly, sometimes only a few lines, sometimes only one line. System.err reports "Breaking out of potential infinite loop".

        Attachments

        1. TextAreaTest.java
          2 kB
          Dirk Moebius

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dmoebius Dirk Moebius
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: