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

Background color not painted properly in TextPane

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0.1
    • Component/s: wtk
    • Labels:
      None

      Description

      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.)

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: