diff options
author | Josh Blum | 2013-03-27 03:54:02 -0500 |
---|---|---|
committer | Josh Blum | 2013-03-27 03:54:02 -0500 |
commit | 561c9054a51a03162bcc50deba8e3a7e0e05cd3c (patch) | |
tree | 4231981c5b52e9c3cd632d576eda510f277f24b2 /python/gras/query/chart_handler_breakdown.js | |
parent | e344e8da8af6c8c4612a6d932f5efad653b95d78 (diff) | |
download | sandhi-561c9054a51a03162bcc50deba8e3a7e0e05cd3c.tar.gz sandhi-561c9054a51a03162bcc50deba8e3a7e0e05cd3c.tar.bz2 sandhi-561c9054a51a03162bcc50deba8e3a7e0e05cd3c.zip |
gras: workaround for google chart shrink on resize issue
Diffstat (limited to 'python/gras/query/chart_handler_breakdown.js')
-rw-r--r-- | python/gras/query/chart_handler_breakdown.js | 2 |
1 files changed, 2 insertions, 0 deletions
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); }; |