Resizing a TextPane wider leaves spurious lines of repeated text
----------------------------------------------------------------
Key: PIVOT-779
URL: https://issues.apache.org/jira/browse/PIVOT-779
Project: Pivot
Issue Type: Bug
Components: wtk
Affects Versions: 2.0.1
Reporter: Bill van Melle
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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira