tweaks
authorDan Vanderkam <danvk@google.com>
Tue, 19 Jul 2011 21:22:46 +0000 (17:22 -0400)
committerDan Vanderkam <danvk@google.com>
Tue, 19 Jul 2011 21:22:46 +0000 (17:22 -0400)
tests/resize.html

index da47b5d..e51f566 100644 (file)
@@ -23,6 +23,7 @@
       right: 10px;
       top: 10px;
       height: 250px;
+      border: 1px solid black;
     }
     </style>
   </head>
     <div id="div_g"></div>
 
     <script type="text/javascript">
-      g = new Dygraph(
-            document.getElementById("div_g"),
-            NoisyData, {
-              rollPeriod: 7,
-              errorBars: true
-            }
-          );
+      document.getElementById("div_g").addEventListener('resize', function() {
+        console.log("resize!");
+      }, false);
+      document.getElementById("div_g").onresize = function() {
+        console.log("resize2!");
+      };
+      //g = new Dygraph(
+      //      document.getElementById("div_g"),
+      //      NoisyData, {
+      //        rollPeriod: 7,
+      //        errorBars: true
+      //      }
+      //    );
 
       // window.onresize = function() {
       //   g.resize();