From 70efb55cfcb6107326ac085939786e6dc0ab378e Mon Sep 17 00:00:00 2001 From: benweet Date: Sun, 9 Mar 2014 19:00:59 +0000 Subject: [PATCH] Fixed extension panels position over the preview --- public/res/eventMgr.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/public/res/eventMgr.js b/public/res/eventMgr.js index fe91e5b7..bfb66e79 100644 --- a/public/res/eventMgr.js +++ b/public/res/eventMgr.js @@ -318,9 +318,11 @@ define([ var previewButtonsWidth = $previewButtonsElt.width(); $previewButtonsElt.find('.btn-group').each(function() { var $btnGroupElt = $(this); - // Align dropdown to the left of the screen - $btnGroupElt.find('.dropdown-menu').css({ - right: -previewButtonsWidth + $btnGroupElt.width() + $btnGroupElt.position().left + $btnGroupElt.click(function() { + // Align dropdown to the left of the screen + $btnGroupElt.find('.dropdown-menu').css({ + right: -previewButtonsWidth + $btnGroupElt.width() + $btnGroupElt.position().left + }); }); });