support y-zooming and panning in synchronize demo
authorDan Vanderkam <danvdk@gmail.com>
Fri, 22 Oct 2010 02:53:06 +0000 (22:53 -0400)
committerDan Vanderkam <danvdk@gmail.com>
Fri, 22 Oct 2010 02:53:06 +0000 (22:53 -0400)
tests/synchronize.html

index 3d9294d..143b8d1 100644 (file)
                 if (blockRedraw || initial) return;
                 blockRedraw = true;
                 var range = me.xAxisRange();
+                var yrange = me.yAxisRange();
                 for (var j = 0; j < 4; j++) {
                   if (gs[j] == me) continue;
-                  gs[j].updateOptions( { dateWindow: range } );
+                  gs[j].updateOptions( {
+                    dateWindow: range,
+                    valueRange: yrange
+                  } );
                 }
                 blockRedraw = false;
               }