HI everyone.
I got big problem with overlay - it is not visible in my application. I did an investigation and it seems like some components have wrong opacity value. Here is screen that shows:
-
red is an canvas marker - style is done by this css code:
.highlight:not(.djs-connection) .djs-visual > :nth-child(1) {
fill: red !important;
} -
blue with number is an overview that somehow is behind all components?! (I added top styling so you can actually see it. The goal is to add it inside ot the red task element)
PROBLEM 1
Now I checked the css and HTML and I saw that the main rectangle that you see in the screen has opacity set to 0.95 ?? Question is why ? I did not do any styling for it at all…so what is wrong ? Here is screen:
PROBLEM 2
Now, when I removed this opacity in firebug I copuld move my overlayer up, but still not in the task area , but just below it…
PROBLEM 3
What is wrong?? I have no idea. I am using the simplest code possible… I have it in jsf popup, but that should not be a problem…
Here is code
function showDiagram(diagramXML) {
viewer.importXML(diagramXML, function() {
var overlays = viewer.get('overlays');
var canvas = viewer.get('canvas');
var elementRegistry = viewer.get('elementRegistry');
var shape = elementRegistry.get('UserTask_1');
var $overlayHtml = $('<div class="badge">');
canvas.addMarker('UserTask_1', 'highlight');
overlays.add('UserTask_1', {
position: {
top: shape.height + 150, // rto actually see it
left: 0
},
html: $overlayHtml
});
});
}
Please help me…