Fixed extension panels position over the preview

This commit is contained in:
benweet 2014-03-09 19:00:59 +00:00
parent b9b73bf11d
commit 70efb55cfc

View File

@ -318,11 +318,13 @@ define([
var previewButtonsWidth = $previewButtonsElt.width(); var previewButtonsWidth = $previewButtonsElt.width();
$previewButtonsElt.find('.btn-group').each(function() { $previewButtonsElt.find('.btn-group').each(function() {
var $btnGroupElt = $(this); var $btnGroupElt = $(this);
$btnGroupElt.click(function() {
// Align dropdown to the left of the screen // Align dropdown to the left of the screen
$btnGroupElt.find('.dropdown-menu').css({ $btnGroupElt.find('.dropdown-menu').css({
right: -previewButtonsWidth + $btnGroupElt.width() + $btnGroupElt.position().left right: -previewButtonsWidth + $btnGroupElt.width() + $btnGroupElt.position().left
}); });
}); });
});
// Call onReady listeners // Call onReady listeners
onReady(); onReady();