From 24a7311a7a20d1b7eba22af48af0cda5c271be7c Mon Sep 17 00:00:00 2001 From: ccd0 Date: Mon, 4 May 2015 20:28:31 -0700 Subject: [PATCH] Fix height of report window with JS disabled and archive report link added. --- src/Miscellaneous/Report.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Miscellaneous/Report.coffee b/src/Miscellaneous/Report.coffee index 861906c53..654847352 100755 --- a/src/Miscellaneous/Report.coffee +++ b/src/Miscellaneous/Report.coffee @@ -12,17 +12,17 @@ Report = ready: -> $.addStyle Report.css + Report.archive() if Conf['Archive Report'] if $.hasClass doc, 'js-enabled' new MutationObserver(-> Report.fit '.gc-bubbleDefault').observe d.body, childList: true attributes: true subtree: true else - Report.fit '.rules' - Report.archive() if Conf['Archive Report'] + Report.fit 'body' fit: (selector) -> - return unless el = $ selector + return unless el = $ selector, doc dy = el.getBoundingClientRect().bottom - doc.clientHeight + 8 window.resizeBy 0, dy if dy > 0