Open GoogleCodeExporter opened 8 years ago
Ok, nevermind, what I said that solved it didn't really solve anything..
Original comment by fox...@gmail.com
on 24 Aug 2010 at 1:39
Can you try the latest version (1.4.1) and let me know if you are still having
issue...
http://code.google.com/p/simplemodal/downloads/list
Original comment by emartin24
on 5 Nov 2010 at 10:45
I have the same problem with 1.4.1.
I used simplemodal for something like simple image gallery consists of large
image and clickable thumbnails changing the large picture.
1st wrong resizing - on modal.open (inner content includes floating divs)
2nd - on resizing of modal block (changing the picture)
Original comment by npavliuc...@terricone.com
on 2 Dec 2011 at 8:36
I have the same problem with 1.4.2, but I've made some workaround.
The centering algorithm doesn't know the correct size of the image, so it fails.
If you pre-load the image before create the modal box using the load event from
the image, it will center correctly.
var IMAGE = ""; // the image url
$("<img src='" + IMAGE + "'>").load(function(){
$('#dialog').empty().append($(this)).modal();
});
Original comment by NightArc...@gmail.com
on 23 Dec 2011 at 2:07
I also found that the use of the load event callback is a perfect solution for
this issue. I use this approach to load a full-size image from a thumbnail.
I'd go so far as to say this would be a preferred approach to "fixing" the
problem in SimpleModal itself.
Original comment by stf.epsi...@gmail.com
on 17 Jun 2015 at 6:56
Original issue reported on code.google.com by
fox...@gmail.com
on 23 Aug 2010 at 8:19