|
@ -549,7 +549,7 @@ LineGraph.prototype.redraw = function(forceGraphUpdate) { |
|
|
resized = this._isResized() || resized; |
|
|
resized = this._isResized() || resized; |
|
|
// check whether zoomed (in that case we need to re-stack everything)
|
|
|
// check whether zoomed (in that case we need to re-stack everything)
|
|
|
var visibleInterval = this.body.range.end - this.body.range.start; |
|
|
var visibleInterval = this.body.range.end - this.body.range.start; |
|
|
//var zoomed = (visibleInterval != this.lastVisibleInterval) || (this.width != this.lastWidth); // we get this from the range changed event
|
|
|
|
|
|
|
|
|
var zoomed = (visibleInterval != this.lastVisibleInterval) || (this.width != this.lastWidth); // we get this from the range changed event
|
|
|
this.lastVisibleInterval = visibleInterval; |
|
|
this.lastVisibleInterval = visibleInterval; |
|
|
this.lastWidth = this.width; |
|
|
this.lastWidth = this.width; |
|
|
|
|
|
|
|
@ -563,7 +563,8 @@ LineGraph.prototype.redraw = function(forceGraphUpdate) { |
|
|
this.svg.style.left = util.option.asSize(-this.width); |
|
|
this.svg.style.left = util.option.asSize(-this.width); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (this.abortedGraphUpdate == true || forceGraphUpdate == true) { |
|
|
|
|
|
|
|
|
// zoomed is here to ensure that animations are shown correctly.
|
|
|
|
|
|
if (zoomed == true || this.abortedGraphUpdate == true || forceGraphUpdate == true) { |
|
|
resized = resized || this._updateGraph(); |
|
|
resized = resized || this._updateGraph(); |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|