Fixed extension panels position over the preview
This commit is contained in:
parent
b9b73bf11d
commit
70efb55cfc
@ -318,9 +318,11 @@ 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);
|
||||||
// Align dropdown to the left of the screen
|
$btnGroupElt.click(function() {
|
||||||
$btnGroupElt.find('.dropdown-menu').css({
|
// Align dropdown to the left of the screen
|
||||||
right: -previewButtonsWidth + $btnGroupElt.width() + $btnGroupElt.position().left
|
$btnGroupElt.find('.dropdown-menu').css({
|
||||||
|
right: -previewButtonsWidth + $btnGroupElt.width() + $btnGroupElt.position().left
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user