projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cff76ec
)
add resize_lock, which fixes a bug in chrome
author
Dan Vanderkam
<danvk@google.com>
Fri, 23 Apr 2010 19:20:53 +0000
(12:20 -0700)
committer
Dan Vanderkam
<danvk@google.com>
Fri, 23 Apr 2010 19:20:53 +0000
(12:20 -0700)
dygraph.js
patch
|
blob
|
blame
|
history
diff --git
a/dygraph.js
b/dygraph.js
index
a9b14ab
..
5f344ba
100644
(file)
--- a/
dygraph.js
+++ b/
dygraph.js
@@
-2213,6
+2213,11
@@
Dygraph.prototype.updateOptions = function(attrs) {
* @param {Number} height Height (in pixels)
*/
Dygraph.prototype.resize = function(width, height) {
+ if (this.resize_lock) {
+ return;
+ }
+ this.resize_lock = true;
+
if ((width === null) != (height === null)) {
this.warn("Dygraph.resize() should be called with zero parameters or " +
"two non-NULL parameters. Pretending it was zero.");
@@
-2235,6
+2240,8
@@
Dygraph.prototype.resize = function(width, height) {
this.createInterface_();
this.drawGraph_(this.rawData_);
+
+ this.resize_lock = false;
};
/**