From 4e5c5d25466e02fe942d34bd8350c05532e71ff9 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Tue, 2 Jul 2013 00:06:51 -0400 Subject: [PATCH] constrain annotation movement --- extras/super-annotations.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extras/super-annotations.js b/extras/super-annotations.js index a63d8eb..dbe62d1 100644 --- 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 -- 2.7.4