From 561c9054a51a03162bcc50deba8e3a7e0e05cd3c Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 27 Mar 2013 03:54:02 -0500 Subject: gras: workaround for google chart shrink on resize issue --- python/gras/query/chart_handler_breakdown.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python/gras/query/chart_handler_breakdown.js') diff --git a/python/gras/query/chart_handler_breakdown.js b/python/gras/query/chart_handler_breakdown.js index f897c5b..459c2d3 100644 --- a/python/gras/query/chart_handler_breakdown.js +++ b/python/gras/query/chart_handler_breakdown.js @@ -32,6 +32,8 @@ GrasChartHandlerBreakdown.prototype.update = function(point) var options = { chartArea:{left:5,top:0,right:5,bottom:0,width:"100%",height:"100%"}, }; + if (this.gc_resize) options.width = 50; + if (this.gc_resize) options.height = 50; this.chart.draw(data, options); }; -- cgit