coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Velting.net on April 21, 2006, 11:33:37 PM

Title: Popup Image not centering...
Post by: Velting.net on April 21, 2006, 11:33:37 PM
When going from the intermediate to the large image, the popup window for some reason is not centering itself like it is supposed to..

Any Ideas???

In IE it seems to randomly place itself, in FF it is always stuck into the upper left-hand corner..

Thanks in advance, and yes, I searched and searched and couldn t find a fix...
Title: Re: Popup Image not centering...
Post by: Joachim Müller on April 22, 2006, 12:08:48 AM
putting my mind-reader hat on: hrm, no success. OK, I have to admit that my mind-reading capabilities are limited. Please post a link.
Title: Re: Popup Image not centering...
Post by: Velting.net on April 22, 2006, 01:44:23 AM
Ha.. Sorry GauGau...

http://velting.net/landscapes.html

Thanks for the help.
Title: Re: Popup Image not centering...
Post by: Joachim Müller on April 22, 2006, 09:59:36 AM
try to debug the function adjust_popup() by putting an alert into it temporarily, something likealert(w);at the end of the function definition.
Title: Re: Popup Image not centering...
Post by: Velting.net on April 22, 2006, 07:19:24 PM
like this i assume..?

<script language="JavaScript" type="text/JavaScript">
      adjust_popup();
      alert(w);
   </script>
Title: Re: Popup Image not centering...
Post by: Velting.net on April 23, 2006, 07:01:46 PM
Whether i put that in the correct place or not, it did not make a difference.. Still having the problem...
Title: Re: Popup Image not centering...
Post by: Joachim Müller on April 27, 2006, 08:35:40 AM
edit scripts.js, findwindow.moveTo((screen.availWidth-w)/2, (screen.availHeight-h)/2);and add after it (into a new line) the alert command. The command isn't meant to fix anything, but only for troubleshooting purposes. You need to find out if the function is exectued at all.