update #hotkey-info height calc

This commit is contained in:
tophf 2017-12-03 08:19:31 +03:00
parent 39a521fb80
commit b4670f759a

View File

@ -131,7 +131,7 @@ window.addEventListener('showStyles:done', function _() {
const height = 4 + const height = 4 +
container.firstElementChild.scrollHeight + container.firstElementChild.scrollHeight +
container.lastElementChild.scrollHeight + container.lastElementChild.scrollHeight +
parseFloat(getComputedStyle(container.firstElementChild).paddingBottom) * 4; parseFloat(getComputedStyle(container.lastElementChild).paddingBottom);
if (height > document.body.clientHeight) { if (height > document.body.clientHeight) {
document.body.style.height = height + 'px'; document.body.style.height = height + 'px';
} }