Popup Image not centering... Popup Image not centering...
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Popup Image not centering...

Started by Velting.net, April 21, 2006, 11:33:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Velting.net

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...

Joachim Müller

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.

Velting.net


Joachim Müller

try to debug the function adjust_popup() by putting an alert into it temporarily, something likealert(w);at the end of the function definition.

Velting.net

like this i assume..?

<script language="JavaScript" type="text/JavaScript">
      adjust_popup();
      alert(w);
   </script>

Velting.net

Whether i put that in the correct place or not, it did not make a difference.. Still having the problem...

Joachim Müller

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.