Libdoc: Fix workaround for Firefox width bug.
This affects the usage list in new modal dialogs showing type info.
Without the workaround the list of usages looks something like this:
First Keyword   , Second Keyword   , Third
The Firefox bug causing this problem is
openKeywordWall();
}
}, 0);
- workaroundFirefoxWidthBug();
createModal();
});
modalBackground.classList.add('visible');
modal.classList.add('visible');
modalContent.appendChild(content.cloneNode(true));
- document.body.style.overflow = 'hidden'
+ document.body.style.overflow = 'hidden';
+ workaroundFirefoxWidthBug();
}
function hideModal() {
const modalBackground = document.getElementById('modal-background');
modalBackground.classList.remove('visible');
modal.classList.remove('visible');
- document.body.style.overflow = 'auto'
+ document.body.style.overflow = 'auto';
// modal is hidden with a fading transition, timeout prevents premature emptying of modal
setTimeout(() => {
- modalContent.innerHTML = ''
- }, 200)
+ modalContent.innerHTML = '';
+ }, 200);
}
// http://stackoverflow.com/a/18484799
