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

Bounds of node is too loose for certain effects

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • fx1.3
    • fx1.2
    • javafx
    • None
    • Marina 131, window xp sp2

      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

        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

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

              Created:
              Updated:
              Resolved:
              Imported: