[IMP]Improved code for setting width and height of document to rendering process graph.

bzr revid: kch@tinyerp.com-20111122114209-olyhazad8dff3s1z
This commit is contained in:
Kunal Chavda (OpenERP)
2011-11-22 17:12:09 +05:30
parent 1c7fa1fabc
commit 5372b9b9a1
+3 -2
View File
@@ -246,9 +246,10 @@ openerp.web_process = function (openerp) {
transitions['active'] = src.active && !dst.gray;
process_graph.addEdge(src['name'], dst['name'], {directed : true});
});
var width = $(document).width();
var height = $(document).height();
var layouter = new Graph.Layout.Ordered(process_graph);
var render_process_graph = new Graph.Renderer.Raphael('process_canvas', process_graph, $('#process_canvas').width(), $('#process_canvas').height());
var render_process_graph = new Graph.Renderer.Raphael('process_canvas', process_graph, width, height);
},
jump_to_view: function(model, id) {
var self = this;