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 + }); }); });