Permalink
Browse files

changed image width and height in initImageSize

  • Loading branch information...
Les Green
Les Green committed Dec 29, 2011
1 parent 5495522 commit 93176dc4ec9dde6bd5b5d1aa1815e4bc490563ba
Showing with 2 additions and 2 deletions.
  1. +2 −2 jquery.imBannerRotater.js
@@ -645,8 +645,8 @@ $.bannerRotater = function(obj, opts) {
function initImageSize(img, cnt) {
var imgH, imgSize;
- var w = $(img).attr('width');
- var h = $(img).attr('height');
+ var w = $(img).width();
+ var h = $(img).height();
imgSize = getNewSize(w, h, opts.steps_small_height, 'height');
lrgSize = getNewSize(w, h, opts.steps_large_height, 'height');
//imgH = (cnt == 1) ? opts.steps_large_height: opts.steps_small_height;

0 comments on commit 93176dc

Please sign in to comment.