Skip to content
Snippets Groups Projects
Commit 58be03b9 authored by juanf's avatar juanf
Browse files

BIS-604 / SP-1211: ELN UI - Hierarchical View (Webkit Bugfix for Animations)

SVN: 30811
parent 60d0cc16
No related branches found
No related tags found
No related merge requests found
...@@ -341,9 +341,21 @@ function SampleHierarchy(serverFacade, inspector, containerId, profile, sample) ...@@ -341,9 +341,21 @@ function SampleHierarchy(serverFacade, inspector, containerId, profile, sample)
} }
this._glowNode = function(nodeId) { this._glowNode = function(nodeId) {
var _this = this;
$("#"+nodeId).removeClass("glow"); $("#"+nodeId).removeClass("glow");
var glow = function() { var glow = function() {
$("#" + nodeId).addClass("glow"); //Make it Glow $("#" + nodeId).addClass("glow"); //Make it Glow
//TO-DO: Fix this hack
//In Webkit browsers is needed to force rendering moving DOM objects during the animation.
//On this case we move them 0 pixels during the animation during 3 seconds, every 100 millis
for(var i=0; i < 30; i++) {
var webKitFixAnimFix = function() {
_this.pan(0,0);
};
setTimeout(webKitFixAnimFix, 100*i);
}
//
} }
setTimeout(glow, 500); setTimeout(glow, 500);
} }
...@@ -419,6 +431,11 @@ function SampleHierarchy(serverFacade, inspector, containerId, profile, sample) ...@@ -419,6 +431,11 @@ function SampleHierarchy(serverFacade, inspector, containerId, profile, sample)
} }
$nodeContent.attr('id', nodeId); $nodeContent.attr('id', nodeId);
if(sample.showDataOnGraph) {
$nodeContent.css({
'padding' : '0px'
});
}
g.addNode(sample.permId, { label: $nodeContent[0].outerHTML}); g.addNode(sample.permId, { label: $nodeContent[0].outerHTML});
NODES[sample.permId] = true; NODES[sample.permId] = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment