From d369c9d95864a060405c554f3d53bc23df8a5509 Mon Sep 17 00:00:00 2001 From: Rufus Pollock Date: Sat, 9 Feb 2013 18:29:02 +0000 Subject: [PATCH] [bugfix,view/flot][xs]: do not subtract 240px from rhs of flot graph (fix appears to be no longer needed and is breaking in most cases ...). --- src/view.flot.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/view.flot.js b/src/view.flot.js index d810b723..fe595e81 100644 --- a/src/view.flot.js +++ b/src/view.flot.js @@ -90,9 +90,6 @@ my.Flot = Backbone.View.extend({ // check we have something to plot if (this.state.get('group') && this.state.get('series')) { - // faff around with width because flot draws axes *outside* of the element - // width which means graph can get push down as it hits element next to it - this.$graph.width(this.el.width() - 240); var series = this.createSeries(); var options = this.getGraphOptions(this.state.attributes.graphType, series[0].data.length); this.plot = $.plot(this.$graph, series, options);