View Single Post
  #5  
Old 10-16-2008, 09:11 PM
 
glsp glsp is offline
 

Member
  
Join Date: Dec 2007
Location: Northampton, MA
Posts: 27
 

Default Re: Increasing the size of the Detailed Image popup window

I had the opposite problem, where I needed the popup window to match the height of the image better. Here is my code at the end of skin1/main/popup_image_js.js:
Code:
function imgOnLoad(obj) { if (images.length == 0 && obj) imgObj = obj; winH = imgObj.height+100<screen.height?imgObj.height+100:screen.height; window.resizeTo(imgObj.width, winH); expandWindowX(false, 10, screen.width); //expandWindowY(false, 10, screen.height); if (images.length == 0) return true; imgObj.alt = images[current_id][1]; return true; }
The original has
window.resizeTo(imgObj.width, imgObj.height);
and you could just change those to whatever dimensions you want.
__________________
X-Cart Gold version 4.1.9

PS: This is what part of the alphabet would look like if Q and R were eliminated.
Reply With Quote