X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-canvas.js;fp=dygraph-canvas.js;h=4ebf5bc16b87d0d649715f606236098b318a9fdc;hb=7c39bb3afb3c51a48ac23bacf93ac74c697aaf71;hp=df8bfb5afe2dea55955bc379d9f36e3dc48c3545;hpb=15c1e309939d7e3a5eb363f84547c1efd336c365;p=dygraphs.git diff --git a/dygraph-canvas.js b/dygraph-canvas.js index df8bfb5..4ebf5bc 100644 --- a/dygraph-canvas.js +++ b/dygraph-canvas.js @@ -53,8 +53,8 @@ var DygraphCanvasRenderer = function(dygraph, element, elementContext, layout) { this.element = element; this.elementContext = elementContext; - this.height = this.element.height; - this.width = this.element.width; + this.height = dygraph.height_; + this.width = dygraph.width_; // --- check whether everything is ok before we return // NOTE(konigsberg): isIE is never defined in this object. Bug of some sort. @@ -185,7 +185,7 @@ DygraphCanvasRenderer.prototype._createIEClipArea = function() { // Right side createClipDiv({ x: plotArea.x + plotArea.w, y: 0, - w: this.width-plotArea.x - plotArea.w, + w: this.width - plotArea.x - plotArea.w, h: this.height });