vendor/assets/javascripts/jqplot-plugins/jqplot.meterGaugeRenderer.js in outfielding-jqplot-rails-1.0.7 vs vendor/assets/javascripts/jqplot-plugins/jqplot.meterGaugeRenderer.js in outfielding-jqplot-rails-1.0.8

- old
+ new

@@ -1,11 +1,11 @@ /** * jqPlot * Pure JavaScript plotting plugin using jQuery * - * Version: 1.0.7 - * Revision: 1224 + * Version: 1.0.8 + * Revision: 1250 * * Copyright (c) 2009-2013 Chris Leonello * jqPlot is currently available for use in all personal or commercial projects * under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL * version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) licenses. This means that you can @@ -411,16 +411,15 @@ this.diameter = d - this.ringWidth; // center in middle of canvas taking into account legend. // will be center of hub. this._center = [(cw-trans*offx)/2 + trans * offx, (ch-trans*offy)/2 + trans * offy]; } + if (this._labelElem && this.labelPosition == 'bottom') { + this._center[1] -= this._labelElem.outerHeight(true); + } + } - - if (this._labelElem && this.labelPosition == 'bottom') { - this._center[1] -= this._labelElem.outerHeight(true); - } - this._radius = this.diameter/2; this.tickSpacing = 6000/this.diameter; if (!this.hubRadius) {