Migrated from: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/337
Sometimes minor unrelated javascript errors cause the lightbox (such as an error in a UI component) cause lightbox initialization to abort, and the UI ends up a weird state: even though everything works, the height of the page becomes huge (see attached image). This persists even after closing the viewer.
It doesn't seem hard to change the logic so that this cannot happen.