From 663e967e31d8f7b1aa4b1dacc131bb0334b56b17 Mon Sep 17 00:00:00 2001 From: rlskoeser Date: Fri, 15 May 2015 17:21:52 -0400 Subject: [PATCH] Only add annotator controls after *first* ul --- src/ui/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/editor.js b/src/ui/editor.js index 2116a421..3d00da72 100644 --- a/src/ui/editor.js +++ b/src/ui/editor.js @@ -451,7 +451,7 @@ var Editor = exports.Editor = Widget.extend({ checkOrientation: function () { Widget.prototype.checkOrientation.call(this); - var list = this.element.find('ul'), + var list = this.element.find('ul').first(), controls = this.element.find('.annotator-controls'); if (this.element.hasClass(this.classes.invert.y)) {