From f24f38ca880754ea6d514abe4d692b263c95605b Mon Sep 17 00:00:00 2001 From: Gery Debongnie Date: Thu, 12 Dec 2013 09:39:36 +0100 Subject: [PATCH] [FIX] removes a debugger statement (addon web_graph) bzr revid: ged@openerp.com-20131212083936-5s8xi6ays4xq9jul --- addons/web_graph/static/src/js/graph.js | 2 +- addons/web_graph/static/src/js/pivot.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/web_graph/static/src/js/graph.js b/addons/web_graph/static/src/js/graph.js index 808f944c5f7..918a698e7b7 100644 --- a/addons/web_graph/static/src/js/graph.js +++ b/addons/web_graph/static/src/js/graph.js @@ -183,7 +183,7 @@ instance.web_graph.GraphView = instance.web.View.extend({ mode: this.mode, pivot: this.pivot_table, width: this.$el.width(), - height: Math.max(document.documentElement.clientHeight - 116 - 60, 250), + height: Math.min(Math.max(document.documentElement.clientHeight - 116 - 60, 250), Math.round(0.8*this.$el.width())), measure_label: this.measure_label() }; openerp.web_graph.draw_chart(options); diff --git a/addons/web_graph/static/src/js/pivot.js b/addons/web_graph/static/src/js/pivot.js index 243997229df..a8ed2ae6ef5 100644 --- a/addons/web_graph/static/src/js/pivot.js +++ b/addons/web_graph/static/src/js/pivot.js @@ -445,7 +445,6 @@ openerp.web_graph.PivotTable = openerp.web.Class.extend({ var col = _.find(col_headers, function (header) { return _.isEqual(header.path, colpath); }); - debugger; cells.push({x: Math.min(row.id, col.id), y: Math.max(row.id, col.id), value: value});