Don't make window size fit hidden bubbles.

This commit is contained in:
ccd0 2015-11-05 22:03:34 -08:00
parent 953f58c450
commit 3b3e8369e5

View File

@ -19,7 +19,7 @@ Report =
Report.fit 'body'
fit: (selector) ->
return unless el = $ selector, doc
return unless (el = $ selector, doc) and getComputedStyle(el).visibility isnt 'hidden'
dy = el.getBoundingClientRect().bottom - doc.clientHeight + 8
window.resizeBy 0, dy if dy > 0