diff --git a/front/core/components/popover/popover.js b/front/core/components/popover/popover.js index 38f566135..0041a8413 100644 --- a/front/core/components/popover/popover.js +++ b/front/core/components/popover/popover.js @@ -77,8 +77,8 @@ export default class Popover extends Component { let isDescriptorMoreMenu = parent && parent.attributes[0].nodeValue == 'more-button'; let leftMenu = this.document.querySelector('div[class="menu left"]'); if (isDescriptorMoreMenu && leftMenu) { + let descriptorDiv = this.document.querySelector('vn-side-menu div[class="vn-descriptor"]'); let leftMenuWidth = leftMenu.offsetWidth; - let descriptorDiv = this.document.querySelector('vn-side-menu div'); let descriptorWidth = descriptorDiv.offsetWidth; this.scrollbarWidth = leftMenuWidth - descriptorWidth;