From 3ff789c66d14a19f57d02aa3b328c5591c577aa9 Mon Sep 17 00:00:00 2001 From: Adeel Ejaz Date: Sun, 2 Jan 2011 01:12:23 +0000 Subject: [PATCH] More formatting --- jquery.ae.image.resize.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/jquery.ae.image.resize.js b/jquery.ae.image.resize.js index 3c44560..bac09cd 100644 --- a/jquery.ae.image.resize.js +++ b/jquery.ae.image.resize.js @@ -29,11 +29,11 @@ this.style.height = this.style.width = ""; var imgHeight = this.height - , imgWidth = this.width - , imgAspectRatio = imgWidth / imgHeight - , bxHeight = params.height - , bxWidth = params.width - , bxAspectRatio = aspectRatio; + , imgWidth = this.width + , imgAspectRatio = imgWidth / imgHeight + , bxHeight = params.height + , bxWidth = params.width + , bxAspectRatio = aspectRatio; // Work the magic! // If one parameter is missing, we just force calculate it