diff options
| author | Gery Debongnie <ged@openerp.com> | 2013-12-11 17:28:50 +0100 |
|---|---|---|
| committer | Gery Debongnie <ged@openerp.com> | 2013-12-11 17:28:50 +0100 |
| commit | 7a672064c02d56f7c833c727e596b098caa5bf08 (patch) | |
| tree | d09429bc6fb342a427cc75d2d74077ae43fb89a0 /addons/web_graph/static/src/js/graph.js | |
| parent | 945719fb7dc9c63933dfbd0a27d557b4e0d2c3c6 (diff) | |
[FIX] improves the handling of headers titles when the db query returns false or undefined (addon web_graph)
bzr revid: ged@openerp.com-20131211162850-mgqs5csnw8wca974
Diffstat (limited to 'addons/web_graph/static/src/js/graph.js')
| -rw-r--r-- | addons/web_graph/static/src/js/graph.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/addons/web_graph/static/src/js/graph.js b/addons/web_graph/static/src/js/graph.js index 364014288c1..808f944c5f7 100644 --- a/addons/web_graph/static/src/js/graph.js +++ b/addons/web_graph/static/src/js/graph.js @@ -178,17 +178,12 @@ instance.web_graph.GraphView = instance.web.View.extend({ this.draw_table(); } else { this.$('.graph_main_content').append($('<div><svg></svg></div>')); - // console.log('this.perentaui', this.getParent().$el); - // this.width = this.$el.width(); - // this.height = this.$el.parent().parent().height(); // to get view manager body - - // debugger; var options = { svg: this.$('.graph_main_content svg')[0], mode: this.mode, pivot: this.pivot_table, width: this.$el.width(), - height: Math.max(this.$el.parent().parent().height() - 45, 250), + height: Math.max(document.documentElement.clientHeight - 116 - 60, 250), measure_label: this.measure_label() }; openerp.web_graph.draw_chart(options); |
