projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb31ffb
)
constrain annotation movement
hairline
author
Dan Vanderkam
<danvdk@gmail.com>
Tue, 2 Jul 2013 04:06:51 +0000
(
00:06
-0400)
committer
Dan Vanderkam
<danvdk@gmail.com>
Tue, 2 Jul 2013 04:06:51 +0000
(
00:06
-0400)
extras/super-annotations.js
patch
|
blob
|
blame
|
history
diff --git
a/extras/super-annotations.js
b/extras/super-annotations.js
index
a63d8eb
..
dbe62d1
100644
(file)
--- a/
extras/super-annotations.js
+++ b/
extras/super-annotations.js
@@
-146,7
+146,8
@@
annotations.prototype.createAnnotation = function(a) {
a.isDragging = false;
self.updateAnnotationDivPositions();
},
- 'axis': 'y'
+ 'axis': 'y',
+ 'containment': 'parent'
});
// TODO(danvk): use 'on' instead of delegate/dblclick