From 58be03b9a07b8ed576949b8ec4fa9db5d128b7d6 Mon Sep 17 00:00:00 2001 From: juanf <juanf> Date: Tue, 4 Mar 2014 16:27:40 +0000 Subject: [PATCH] BIS-604 / SP-1211: ELN UI - Hierarchical View (Webkit Bugfix for Animations) SVN: 30811 --- .../newbrowser/html/js/views/SampleHierarchy.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/SampleHierarchy.js b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/SampleHierarchy.js index 03a57c3380b..5a8c4ece4b1 100644 --- a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/SampleHierarchy.js +++ b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/SampleHierarchy.js @@ -341,9 +341,21 @@ function SampleHierarchy(serverFacade, inspector, containerId, profile, sample) } this._glowNode = function(nodeId) { + var _this = this; $("#"+nodeId).removeClass("glow"); var glow = function() { $("#" + 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); } @@ -419,6 +431,11 @@ function SampleHierarchy(serverFacade, inspector, containerId, profile, sample) } $nodeContent.attr('id', nodeId); + if(sample.showDataOnGraph) { + $nodeContent.css({ + 'padding' : '0px' + }); + } g.addNode(sample.permId, { label: $nodeContent[0].outerHTML}); NODES[sample.permId] = true; -- GitLab