Commit d07654bc authored by Jean-Clement Gallardo's avatar Jean-Clement Gallardo
Browse files

add event expand and collapse for NetWorkManager

parent 9c262180
...@@ -14,6 +14,26 @@ Ext.define('metExploreViz.view.panel.comparisonSidePanel.ComparisonSidePanelCont ...@@ -14,6 +14,26 @@ Ext.define('metExploreViz.view.panel.comparisonSidePanel.ComparisonSidePanelCont
newMapping : me.drawCaption, newMapping : me.drawCaption,
scope:me scope:me
}); });
view.on({
expand : function(){
var viz = Ext.getCmp('viz');
if(viz.lookupReference('handcursor').hasCls('focus')){
metExploreD3.GraphNetwork.moveGraph();
metExploreD3.GraphNetwork.moveGraph();
}
}
});
view.on({
collapse : function(){
var viz = Ext.getCmp('viz');
if(viz.lookupReference('handcursor').hasCls('focus')){
metExploreD3.GraphNetwork.moveGraph();
metExploreD3.GraphNetwork.moveGraph();
}
}
});
}, },
drawCaption : function(){ drawCaption : function(){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment