This commit is contained in:
Molkobain
2021-08-17 21:10:45 +02:00
parent 495b39a7ab
commit 909af7f59c

View File

@@ -188,6 +188,12 @@ $(function()
_isOpened: function () {
return this.element.hasClass(this.css_classes.opened);
},
/**
* Compute and apply current position of the menu
*
* @return {void}
* @private
*/
_applyPosition: function () {
const oTargetElem = ('toggler' === this.options.position.target) ? $(this.options.toggler) : $(this.options.position.target);
const oTargetPos = ('parent' === this.options.container) ? oTargetElem.position() : oTargetElem.offset();