projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0290d07
)
this is how I'd like resizing to work
author
Dan Vanderkam
<danvk@google.com>
Thu, 14 Jul 2011 15:34:13 +0000
(11:34 -0400)
committer
Dan Vanderkam
<danvk@google.com>
Thu, 14 Jul 2011 15:34:13 +0000
(11:34 -0400)
tests/resize.html
patch
|
blob
|
blame
|
history
diff --git
a/tests/resize.html
b/tests/resize.html
index
2d2a02e
..
da47b5d
100644
(file)
--- a/
tests/resize.html
+++ b/
tests/resize.html
@@
-17,10
+17,17
@@
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>