Okay, so I finally figured out what you have tried to tell me but I couldn't get into my thick head. Apparently the popup is coming in at a width that is too small and the image is being squashed from the sides. I was able to expand the width of the image and it began appearing as more appropriately expected.
At the moment, I am only guessing since I have not started with a fresh cart and applied IH4 to it, but one thing I see is that I have the following jscript_main.php file in the includes/modules/pages/popup_image directory, and am wondering if it has an effect because it seems to address some of the size issues described. I tried disabling the file from my site, but the resizing on my side still worked. I haven't experienced a "shrink" of the image and do not know where the value of 250 is coming from for the width. Also, the images that I get to appear on my site, if I were to shrink the window, the image doesn't shrink with it like how yours expands with the window until at least 600x600 and then shrinks again with a shrinking window.
Do you have the following jscript_main.php file installed in the includes/modules/pages/popup_image directory?
Not sure if this was supposed to be a part of the IH4 package or not, or if it was part of another installation, but it appears to handle some of what you are describing.Code:<?php /** * jscript_main * * @package page * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: jscript_main.php 3126 2006-03-07 03:09:40Z drbyte $ */ ?> <script language="javascript" type="text/javascript"><!-- var i=0; function resize() { i=0; // if (navigator.appName == 'Netscape') i=20; if (window.navigator.userAgent.indexOf('MSIE 6.0') != -1 && window.navigator.userAgent.indexOf('SV1') != -1) { i=30; //This browser is Internet Explorer 6.x on Windows XP SP2 } else if (window.navigator.userAgent.indexOf('MSIE 6.0') != -1) { i=0; //This browser is Internet Explorer 6.x } else if (window.navigator.userAgent.indexOf('Firefox') != -1 && window.navigator.userAgent.indexOf("Windows") != -1) { i=25; //This browser is Firefox on Windows } else if (window.navigator.userAgent.indexOf('Mozilla') != -1 && window.navigator.userAgent.indexOf("Windows") != -1) { i=45; //This browser is Mozilla on Windows } else { i=80; //This is all other browsers including Mozilla on Linux } if (document.documentElement && document.documentElement.clientWidth) { // frameWidth = document.documentElement.clientWidth; // frameHeight = document.documentElement.clientHeight; imgHeight = document.images[0].height+40-i; imgWidth = document.images[0].width+20; var height = screen.height; var width = screen.width; var leftpos = width / 2 - imgWidth / 2; var toppos = height / 2 - imgHeight / 2; frameWidth = imgWidth; frameHeight = imgHeight+i; window.moveTo(leftpos, toppos); // window.resizeTo(imgWidth, imgHeight); window.resizeTo(frameWidth,frameHeight+i); } else if (document.body) { window.resizeTo(document.body.clientWidth, document.body.clientHeight-i); } self.focus(); } //--></script>



Reply With Quote
