Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Popup Image not centering...  (Read 3631 times)

0 Members and 1 Guest are viewing this topic.

Velting.net

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Popup Image not centering...
« 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...
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Popup Image not centering...
« Reply #1 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.
Logged

Velting.net

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Popup Image not centering...
« Reply #2 on: April 22, 2006, 01:44:23 am »

Ha.. Sorry GauGau...

http://velting.net/landscapes.html

Thanks for the help.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Popup Image not centering...
« Reply #3 on: April 22, 2006, 09:59:36 am »

try to debug the function adjust_popup() by putting an alert into it temporarily, something like
Code: [Select]
alert(w);at the end of the function definition.
Logged

Velting.net

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Popup Image not centering...
« Reply #4 on: April 22, 2006, 07:19:24 pm »

like this i assume..?

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

Velting.net

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Popup Image not centering...
« Reply #5 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...
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Popup Image not centering...
« Reply #6 on: April 27, 2006, 08:35:40 am »

edit scripts.js, find
Code: [Select]
window.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.
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 20 queries.