Background color not painted properly in TextPane -------------------------------------------------
Key: PIVOT-715 URL: https://issues.apache.org/jira/browse/PIVOT-715 Project: Pivot Issue Type: Bug Components: wtk Affects Versions: 2.0 Reporter: Bill van Melle Priority: Minor The background color is not painted properly in a TextPane with multiple spans. Here's a simple example: <Window maximized="true" xmlns:bxml="http://pivot.apache.org/bxml" xmlns="org.apache.pivot.wtk"> <TextPane> <Document xmlns="org.apache.pivot.wtk.text"> <Paragraph backgroundColor="yellow"> <Span font="{bold:true}"><TextNode text="Label:"/></Span> <TextNode text=" some random text "/> <Span font="{italic:true}"><TextNode text="(some remark)"/></Span> </Paragraph> </Document> </TextPane> </Window> If the window is wide enough, you'll see an extra splotch of yellow to the right of the text, and part of the text will not be yellow. If you reshape the window to be narrower than the text, you'll see many variations of blocks of yellow showing outside the text, and parts of the next not having a yellow background. (The bold and italic styles make it interesting, but you can take them away and still see the bug, just as long as the paragraph has multiple spans. And the reshaping bug doesn't even require multiple spans.) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira