1
Hi all.
I am currently running XOOPS 2.2.3 and xcgal 2.0.
I am having a small problem that I am sure someone with some coding experience could fix in a flash. I have tried to fix it myself. I have searched this site and the web for someone with this same problem and have been unsuccessful. Any help or suggestions that anyone could offer would be appreciated. :)
Go here
http://www.thewoodlandsmonitor.com/testsite/ 1. Click on xcgallery in the main menu.
2. Click one of the thumbs to bring up the intermediate image.
3. Now click on the intermediate image to bring up the full image.
As you can see the pop up window that comes up attempts to resize itself and center itself. The centering seems to work fine, but the resize looks like it resizes the window to 0,0
So of course I am trying to get the full size image to display in the popup window correctly.
I attempted to mess with this code in scripts.js in the xcgal module, but have not figured out how to get desired result
Quote:
function adjust_popup()
{
var w, h, fixedW, fixedH, diffW, diffH;
if (document.all) {
fixedW = document.body.clientWidth;
fixedH = document.body.clientHeight;
window.resizeTo(fixedW, fixedH);
diffW = fixedW - document.body.clientWidth;
diffH = fixedH - document.body.clientHeight;
} else {
fixedW = window.innerWidth;
fixedH = window.innerHeight;
window.resizeTo(fixedW, fixedH);
diffW = fixedW - window.innerWidth;
diffH = fixedH - window.innerHeight;
}
w = fixedW + diffW;
h = fixedH + diffH;
if (h >= screen.availHeight) w += 16;
if (w >= screen.availWidth) h += 16;
w = Math.min(w,screen.availWidth);
h = Math.min(h,screen.availHeight);
window.resizeTo(w,h);
window.moveTo((screen.availWidth-w)/2, (screen.availHeight-h)/2);
}
I am not for sure if this is even the right place to look. In several other files (i.e. displayimage.php) there is similiar code. Needless to say this is terribly confusing to a non coder :)
Any help or suggestions that anyone could provide would be greatly appreciated.
Thanks
foz