added a precise selector #1680
gitea/salix/dev This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2019-09-24 13:22:01 +02:00
parent 92463b0ccd
commit d1acd60d5a
1 changed files with 1 additions and 1 deletions

View File

@ -77,8 +77,8 @@ export default class Popover extends Component {
let isDescriptorMoreMenu = parent && parent.attributes[0].nodeValue == 'more-button'; let isDescriptorMoreMenu = parent && parent.attributes[0].nodeValue == 'more-button';
let leftMenu = this.document.querySelector('div[class="menu left"]'); let leftMenu = this.document.querySelector('div[class="menu left"]');
if (isDescriptorMoreMenu && leftMenu) { if (isDescriptorMoreMenu && leftMenu) {
let descriptorDiv = this.document.querySelector('vn-side-menu div[class="vn-descriptor"]');
let leftMenuWidth = leftMenu.offsetWidth; let leftMenuWidth = leftMenu.offsetWidth;
let descriptorDiv = this.document.querySelector('vn-side-menu div');
let descriptorWidth = descriptorDiv.offsetWidth; let descriptorWidth = descriptorDiv.offsetWidth;
this.scrollbarWidth = leftMenuWidth - descriptorWidth; this.scrollbarWidth = leftMenuWidth - descriptorWidth;