From d053d78c8fe9da028018376899fda84fcce84321 Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 8 Nov 2017 06:47:55 +0300 Subject: [PATCH] popup: use "height: min-content" instead of the hack --- popup/popup.css | 5 +++++ popup/popup.js | 6 ------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/popup/popup.css b/popup/popup.css index f8fb5e66..50807b4d 100644 --- a/popup/popup.css +++ b/popup/popup.css @@ -1,9 +1,14 @@ +html, body { + height: min-content; +} + body { width: 252px; font-size: 12px; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; margin: 0; } + .firefox body { background-color: #fff; color: #000; diff --git a/popup/popup.js b/popup/popup.js index 462ce74b..b20b9e47 100644 --- a/popup/popup.js +++ b/popup/popup.js @@ -62,12 +62,6 @@ function initPopup(url) { setPopupWidth(); - // force Chrome to resize the popup - if (!FIREFOX) { - document.body.style.height = '10px'; - document.documentElement.style.height = '10px'; - } - // action buttons $('#disableAll').onchange = function () { installed.classList.toggle('disabled', this.checked);