Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8106817

Bounds of node is too loose for certain effects

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: fx1.2
    • Fix Version/s: fx1.3
    • Component/s: javafx
    • Labels:
      None
    • Environment:

      Marina 131, window xp sp2

      Description

      A Text with effect will get a larger bounds than expected since marina 131. It's ok on marina 130.

      there is tested Text:

      var txt: Text = Text{
          x: 50
          y: 50
          content: "Hello World1!"
          fill: Color.WHITE
          effect: InnerShadow {
              choke: 0.3
              offsetX: -0.5
              offsetY: -0.5
              radius: 4
              color: Color.BLACK
          };
          textOrigin: TextOrigin.TOP
      };

      attachment is the testcase

        Attachments

        1. bug.zip
          34 kB
        2. run_with_130.png
          run_with_130.png
          16 kB
        3. run_with_131.png
          run_with_131.png
          15 kB

          Issue Links

            Activity

              People

              Assignee:
              flar Jim Graham
              Reporter:
              ssheldoncwse sheldonchen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: