From b4670f759a4bb3c146309635ea51e27058b33e34 Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 3 Dec 2017 08:19:31 +0300 Subject: [PATCH] update #hotkey-info height calc --- popup/hotkeys.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/popup/hotkeys.js b/popup/hotkeys.js index 12820168..4508d151 100644 --- a/popup/hotkeys.js +++ b/popup/hotkeys.js @@ -131,7 +131,7 @@ window.addEventListener('showStyles:done', function _() { const height = 4 + container.firstElementChild.scrollHeight + container.lastElementChild.scrollHeight + - parseFloat(getComputedStyle(container.firstElementChild).paddingBottom) * 4; + parseFloat(getComputedStyle(container.lastElementChild).paddingBottom); if (height > document.body.clientHeight) { document.body.style.height = height + 'px'; }