X-Git-Url: http://git.rot13.org/?p=bookreader.git;a=blobdiff_plain;f=BookReader%2FBookReader.js;fp=BookReader%2FBookReader.js;h=ca2a71fdeb79701c8ce3a023f05fbcc41e9e973e;hp=f2a02a0316789c6e5599f6455de3acefc79ba529;hb=7892c08e04786485723415c210d2a774486b9f4f;hpb=d19d948c10af04445c91a6798f5a0e73879f2298;ds=sidebyside diff --git a/BookReader/BookReader.js b/BookReader/BookReader.js index f2a02a0..ca2a71f 100644 --- a/BookReader/BookReader.js +++ b/BookReader/BookReader.js @@ -804,10 +804,20 @@ BookReader.prototype.lazyLoadImage = function (dummyImage) { // Remove class so we no longer count as loading $(this).removeClass('BRlazyloading'); }) - .attr( { width: $(dummyImage).width(), - height: $(dummyImage).height(), - src: $(dummyImage).data('srcURL') + + //the width set with .attr is ignored by Internet Explorer, causing it to show the image at its original size + //but with this one line of css, even IE shows the image at the proper size + /* + .css({ + 'width': $(dummyImage).width()+'px', + 'height': $(dummyImage).height()+'px' + }) + .attr({ + 'width': $(dummyImage).width(), + 'height': $(dummyImage).height(), + 'src': $(dummyImage).data('srcURL') }); + */ // replace with the new img $(dummyImage).before(img).remove();