Details
-
Bug
-
Resolution: Fixed
-
P2
-
fx1.0
-
Emulator running on Windows XP, jdk6u10
Description
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
}]
}
}
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
}]
}
}