Don't make window size fit hidden bubbles.
This commit is contained in:
parent
953f58c450
commit
3b3e8369e5
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user