Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Popup Image not centering...  (Read 3732 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.021 seconds with 19 queries.