Lines Matching refs:imageWidth
376 var imageWidth = imgPreloader.width;
382 if (imageWidth > x) {
383 imageHeight = Math.round(imageHeight * (x / imageWidth));
384 imageWidth = x;
386 imageWidth = Math.round(imageWidth * (y / imageHeight));
390 imageWidth = Math.round(imageWidth * (y / imageHeight));
392 if (imageWidth > x) {
393 imageHeight = Math.round(imageHeight * (x / imageWidth));
394 imageWidth = x;
400 lbImage.width = imageWidth;
402 myLytebox.resizeContainer(imageWidth, imageHeight);