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

Mobile: A node initialized with opacity < 1 is opaque

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • fx1.1
    • fx1.0
    • javafx
    • Emulator running on Windows XP, jdk6u10

      A node created with opacity is 0.5 is opaque. This happens only on emulator and works correctly on desktop. Compatibility issue

      To reproduce, run the below code on emulator. If the red rectangle is opaque, bug is reproduced

      import javafx.scene.paint.*;
      import javafx.scene.shape.*;
      import javafx.stage.*;
      import javafx.scene.*;

      Stage {
          width: 300
          height: 300
          scene: Scene {
              content: [Rectangle {
                  x: 40
                  y: 40
                  width: 80
                  height: 60
                  fill: Color.BLUE
              }, Rectangle {
                  x: 80
                  y: 80
                  width: 80
                  height: 60
                  fill: Color.RED
                  opacity: 0.5
              }]
          }
      }

            ailjin Artem Iljin (Inactive)
            gramachasunw Girish Ramachandran (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: