Yes, I know...what I meant is that the window that encapsulates the picture cuts off the shoe. But the image itself is fine.
Worked like a charm, thanks!The fix is easy: just remove the size adjustment value
Yes, I know...what I meant is that the window that encapsulates the picture cuts off the shoe. But the image itself is fine.
Worked like a charm, thanks!The fix is easy: just remove the size adjustment value
IDEAS Girl
IDEAS Creative Group = Your image... our business!
My contributions: SophyBlue / Sophy Blue-Grey / Mistik / The Bookshelf / Dynamic Sideboxes
Thanks for identifying the where the problem was coming from and what file needed to be modified. Changing it to i=45 made negligible difference in Firefox. I had to change it to i=80 and the popup re-sizes perfectly in Firefox showing the entire image (same as in IE and Chrome now).
Last edited by Crunch; 18 Aug 2011 at 04:50 AM.
crunch are you saying it fixes it in IE as well? the line in red says specifically firefox on windows. can you clarify?
Here is an update to my testing using the stock Classic Contemporary Green template.
Issues:
- IE 8: Popup re-size window does not open vertically enough to show the bottom of an image (it's cut off)
- IE 9: Popup re-size window opens a bit too much so it shows extra white space below the image
- Firefox 6 and prior versions: Popup re-size window does not open vertically enough to show the bottom of an image (it's cut off)
I updated the \includes\modules\pages\popup_image\jscript_main.php file to add IE 8 and IE 9 agents and changed the Firefox value.
Here is how that whole section of the file looks now:
Code: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('MSIE 8.0') != -1) { i=55; //This browser is Internet Explorer 8.x } else if (window.navigator.userAgent.indexOf('MSIE 9.0') != -1) { i=30; //This browser is Internet Explorer 9.x } else if (window.navigator.userAgent.indexOf('Firefox') != -1 && window.navigator.userAgent.indexOf("Windows") != -1) { i=60; //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 }
These updates above fix these issues with the popup re-size box in IE8, IE9 and Firefox.
NOTE: If your template modifies the behavior of the box somehow you may need to tweak these values a bit. The reason I say this is that the custom template I use (cherry zen) has something screwy in it that pushes the image down in the box leaving white space above the image. So, I have to tweak these values a bit to compensate for that template behavior.
Last edited by Crunch; 21 Aug 2011 at 03:53 AM.
Do you have a demo of where you are using these settings?
I am not so sure about the FireFox setting, FireFox 6 is going to have issues with that being so large ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
I PM'd you.
What operating system do you have on your computer?
I am using Windows 7 ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Windows 7 Ultimate 64-bit
See how these settings work for you:
Code:// 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('MSIE 8.0') != -1) { i=55; //This browser is Internet Explorer 8.x } else if (window.navigator.userAgent.indexOf('MSIE 9.0') != -1) { i=30; //This browser is Internet Explorer 9.x } else if (window.navigator.userAgent.indexOf('SeaMonkey') != -1 && window.navigator.userAgent.indexOf("Windows") != -1) { i=0; //This browser is SeaMonkey on Windows } else if (window.navigator.userAgent.indexOf('Chrome') != -1 && window.navigator.userAgent.indexOf("Windows") != -1) { i=27; //This browser is Chrome on Windows } else if (window.navigator.userAgent.indexOf('Safari') != -1 && window.navigator.userAgent.indexOf("Windows") != -1) { i=3; //This browser is Safari on Windows } else if (window.navigator.userAgent.indexOf('Firefox') != -1 && window.navigator.userAgent.indexOf("Windows") != -1) { i=38; //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 if (window.navigator.userAgent.indexOf('Opera') != -1 && window.navigator.userAgent.indexOf("Windows") != -1) { i=25; //This browser is Opera on Windows } else if (window.navigator.userAgent.indexOf('Safari') != -1 && window.navigator.userAgent.indexOf("Macintosh") != -1) { i=0; //This browser is Safari on Mac } else if (window.navigator.userAgent.indexOf('Firefox') != -1 && window.navigator.userAgent.indexOf("Macintosh") != -1) { i=35; //This browser is Firefox on Intel Mac } else if (window.navigator.userAgent.indexOf('Opera') != -1 && window.navigator.userAgent.indexOf("Macintosh") != -1) { i=13; //This browser is Opera on Intel Mac } else { i=80; //This is all other browsers including Mozilla on Linux }
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Everything looks good, but the image in Firefox 6 is still cutoff. Setting it from 38 to 60 makes it work.
Bookmarks