Permalink
Browse files

Fix repostionning modal when the open doesn't exists anymore #168

  • Loading branch information...
1 parent 5a243fc commit 0d162edcdfd3d4e47fb7e778f2347ba62b505c97 @nyroDev committed Oct 15, 2014
Showing with 5 additions and 3 deletions.
  1. +5 −3 js/jquery.nyroModal.js
@@ -696,11 +696,13 @@ jQuery(function($, undefined) {
});
},
_resize: function() {
- var opens = $(':nmOpen').each(function() {
- $(this).data('nmObj')._unreposition();
+ $.each(this.stack, function(k, v) {
+ v.nmObj._unreposition();
});
this._calculateFullSize();
- opens.trigger('nmResize');
+ $.each(this.stack, function(k, v) {
+ v.nmObj.resize();
+ });
},
_calculateFullSize: function() {
this.fullSize = {

0 comments on commit 0d162ed

Please sign in to comment.