Closed claudioimai closed 6 years ago
This is potentially a real fix, but I'd like someone to confirm browser compatibility before I merge.
Latest version implements something like this. It was done to improve layout for larger alerts that are taller than the window which was causing them to be too close to the top of the window.
Just found this problem, in a window larger the the viewport, with a lightbox opening far below the viewport, rendering it useless. (in Firefox 59, at least)
I found this code on line 97:
Fix: $(window).height() returns the full height of the rendered page, while the code wants the viewport size.
I switched it to
window.innerHeight will correctly return the viewport height, thus positioning the window at the correct place.