Permalink
Browse files

added prop function to check height and width of image

  • Loading branch information...
creotiv committed Aug 9, 2012
1 parent 26c080b commit 132ac364f3fd3dacdd91d2ce87836d84422098be
Showing with 2 additions and 2 deletions.
  1. +2 −2 jquery-an-showbox/jquery-an-showbox.js
@@ -233,8 +233,8 @@ var ShowBox = {
img.attr('src',ShowBox._images[ShowBox._current][ind][0])
.load(function(){
- var iW = $(this).width();
- var iH = $(this).height();
+ var iW = $(this).prop('width');
+ var iH = $(this).prop('height');
$(this).attr({
width:iW,
height:iH

0 comments on commit 132ac36

Please sign in to comment.