projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Export Dygraph
[dygraphs.git]
/
tests
/
resize.html
diff --git
a/tests/resize.html
b/tests/resize.html
index
2d2a02e
..
c11bf5f
100644
(file)
--- a/
tests/resize.html
+++ b/
tests/resize.html
@@
-1,11
+1,7
@@
<!DOCTYPE html>
<html>
<head>
<!DOCTYPE html>
<html>
<head>
- <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9">
<title>resize the window</title>
<title>resize the window</title>
- <!--[if IE]>
- <script type="text/javascript" src="../excanvas.js"></script>
- <![endif]-->
<!--
For production (minified) code, use:
<script type="text/javascript" src="dygraph-combined.js"></script>
<!--
For production (minified) code, use:
<script type="text/javascript" src="dygraph-combined.js"></script>
@@
-14,13
+10,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
+31,6
@@
errorBars: true
}
);
errorBars: true
}
);
-
- window.onresize = function() {
- g.resize();
- }
</script>
</body>
</html>
</script>
</body>
</html>