summaryrefslogtreecommitdiff
path: root/addons/web_graph/static/src/js/graph.js
diff options
context:
space:
mode:
authorGery Debongnie <ged@openerp.com>2013-12-11 15:50:56 +0100
committerGery Debongnie <ged@openerp.com>2013-12-11 15:50:56 +0100
commit8da86807b6d459a7c6d010e447ea006c61790923 (patch)
tree15aebedd274835e6602032ce0fea492021b9003a /addons/web_graph/static/src/js/graph.js
parentb04f21ea12406fc28e7a74494af0397f6ce9e6d1 (diff)
[FIX] quick fix to make sure charts have a minimal height that is not too small (addon web_graph)
bzr revid: ged@openerp.com-20131211145056-nzpnir06xx3q0n9y
Diffstat (limited to 'addons/web_graph/static/src/js/graph.js')
-rw-r--r--addons/web_graph/static/src/js/graph.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_graph/static/src/js/graph.js b/addons/web_graph/static/src/js/graph.js
index f1d08968626..0b0078e7ff1 100644
--- a/addons/web_graph/static/src/js/graph.js
+++ b/addons/web_graph/static/src/js/graph.js
@@ -185,7 +185,7 @@ instance.web_graph.GraphView = instance.web.View.extend({
mode: this.mode,
pivot: this.pivot_table,
width: this.width,
- height: this.height - 30,
+ height: Math.max(this.height - 45, 250),
measure_label: this.measure_label()
};
openerp.web_graph.draw_chart(options);