projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add a version history page
[dygraphs.git]
/
tests
/
resize.html
diff --git
a/tests/resize.html
b/tests/resize.html
index
2d2a02e
..
562fa9c
100644
(file)
--- a/
tests/resize.html
+++ b/
tests/resize.html
@@
-14,13
+14,18
@@
<script type="text/javascript" src="data.js"></script>
<style type="text/css">
<script type="text/javascript" src="data.js"></script>
<style type="text/css">
- html, body {
- height: 100%;
+ #div_g {
+ position: absolute;
+ left: 10px;
+ right: 10px;
+ top: 40px;
+ bottom: 10px;
}
</style>
</head>
<body>
}
</style>
</head>
<body>
- <div id="div_g" style="width:95%; height:95%"></div>
+ <p>Resize the window. The dygraph will resize with it.</p>
+ <div id="div_g"></div>
<script type="text/javascript">
g = new Dygraph(
<script type="text/javascript">
g = new Dygraph(
@@
-30,10
+35,6
@@
errorBars: true
}
);
errorBars: true
}
);
-
- window.onresize = function() {
- g.resize();
- }
</script>
</body>
</html>
</script>
</body>
</html>