From 909af7f59c042de6077a966cf5daeb87921c40bb Mon Sep 17 00:00:00 2001 From: Molkobain Date: Tue, 17 Aug 2021 21:10:45 +0200 Subject: [PATCH] JSDoc --- js/components/popover-menu.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/components/popover-menu.js b/js/components/popover-menu.js index d3ad0473d..6d8ba311e 100644 --- a/js/components/popover-menu.js +++ b/js/components/popover-menu.js @@ -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();