compact / angular-bootstrap-lightbox

An AngularJS lightbox built using UI Bootstrap Modal.
http://compact.github.io/angular-bootstrap-lightbox/
MIT License
306 stars 134 forks source link

Prevent Image from being Removed upon Close #78

Open executives opened 7 years ago

executives commented 7 years ago

I noticed when I close the Lightbox Modal on a single image, that image gets removed before the modal goes away. This produces an abrupt resize of the modal since there is no image to expand the modal's dimensions, moments before the modal disappears.

I'm using a local copy of angular-bootstrap-lightbox.js ver 0.12.0 Commenting out line 692 resize(); seems to fix the issue for now.