this is how I'd like resizing to work
authorDan Vanderkam <danvk@google.com>
Thu, 14 Jul 2011 15:34:13 +0000 (11:34 -0400)
committerDan Vanderkam <danvk@google.com>
Thu, 14 Jul 2011 15:34:13 +0000 (11:34 -0400)
tests/resize.html

index 2d2a02e..da47b5d 100644 (file)
     html, body {
       height: 100%;
     }
+    #div_g {
+      position: absolute;
+      left: 10px;
+      right: 10px;
+      top: 10px;
+      height: 250px;
+    }
     </style>
   </head>
   <body>
-    <div id="div_g" style="width:95%; height:95%"></div>
+    <div id="div_g"></div>
 
     <script type="text/javascript">
       g = new Dygraph(
@@ -31,9 +38,9 @@
             }
           );
 
-      window.onresize = function() {
-        g.resize();
-      }
+      // window.onresize = function() {
+      //   g.resize();
+      // }
     </script>
   </body>
 </html>