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

Resizing a TextPane wider leaves spurious lines of repeated text

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.1
    • 2.0.1
    • wtk
    • None

    Description

      If you resize a TextPane to be wider, so that its paragraphs in it require fewer lines to display, it leaves behind one or more extra lines per paragraph that repeat the text. The bug is most dramatic when the resize is abrupt, such as when you maximize a window. Here's an example:

      <Window title="Font change" maximized="true"
      xmlns="org.apache.pivot.wtk">
      <TextPane>
      <Document xmlns="org.apache.pivot.wtk.text" >
      <Paragraph>
      <TextNode text="Resize the window so that these paragraphs occupy multiple lines, and then resize the window larger." />
      </Paragraph>
      <Paragraph>
      <TextNode text="At some point each paragraph should occupy one screen line, but in fact they always occupy at least two." />
      </Paragraph>
      <Paragraph>
      <TextNode text="The second line contains text that is repeated in the first line." />
      </Paragraph>
      <Paragraph>
      <TextNode text="If you resize abruptly, by maximizing the window, you'll find yourself with multiple lines of repeated text that shouldn't be there." />
      </Paragraph>
      </Document>
      </TextPane>
      </Window>

      This example fails in the current trunk, but works correctly in 2.0.

      Attachments

        Activity

          People

            grandinj Noel Grandin
            bvanmelle Bill van Melle
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: