Change dropdown css
This commit is contained in:
parent
39b42a29a4
commit
de8adf983e
3 changed files with 49 additions and 8 deletions
|
@ -252,7 +252,17 @@ $.fn.textWidth = function () {
|
|||
};
|
||||
|
||||
function registerPopper($trigger, $dropdown) {
|
||||
const popper = Popper.createPopper($trigger[0], $dropdown[0]);
|
||||
const popper = Popper.createPopper($trigger[0], $dropdown[0], {
|
||||
placement: 'bottom-end',
|
||||
modifiers: [
|
||||
{
|
||||
name: 'offset',
|
||||
options: {
|
||||
offset: [0, 8],
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
$trigger.click(function(e) {
|
||||
$dropdown.toggle();
|
||||
popper.update();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue