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

Selection in a Paragraph with non-null background color displays incorrectly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0, 2.0.1
    • 2.0.1
    • wtk
    • None
    • Windows XP, Mac OS X (at least)

    Description

      If you try to select text in a Paragraph that has a background color, the selection background is not painted, but the text is painted white, which means that against a white or light background, the text is effectively invisible. The problem doesn't happen when the Paragraph has the default (null) background.

      Simple example:

      <Window maximized="true"
      xmlns="org.apache.pivot.wtk">
      <TextPane>
      <Document xmlns="org.apache.pivot.wtk.text">
      <Paragraph>
      <TextNode text="Lorem ipsum dolor sit amet, consetetur sadipscing elitr..." />
      </Paragraph>
      <Paragraph backgroundColor="white">
      <TextNode text="Lorem ipsum dolor sit amet, consetetur sadipscing elitr..." />
      </Paragraph>
      </Document>
      </TextPane>
      </Window>

      Try making a selection that includes the second line of text, and notice that you can't read the text.

      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: