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: Fullsize image window does not fit  (Read 3319 times)

0 Members and 1 Guest are viewing this topic.

snowfore

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
    • http://www.snow-forecast.com
Fullsize image window does not fit
« on: February 10, 2004, 11:32:15 am »

Hi

If you click an intermediate image in my gallery, the fullsize image does not fill the window and it has scrollbars (even though it is smaller than the screen size e.g. 850px wide)

Here is the URL: http://www.printbox.co.uk/coppermine/displayimage.php?pos=-30

Many thanks

Nick
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Fullsize image window does not fit
« Reply #1 on: February 10, 2004, 01:24:04 pm »

it seems that the javascript is sizing the window the exact size of the pic, and not taking into account the borders.

Check your displayimage.php, around line 148,
Code: [Select]
   if (isset($image_size['reduced'])) {
        $winsizeX = $CURRENT_PIC_DATA['pwidth'] + 16;
        $winsizeY = $CURRENT_PIC_DATA['pheight'] + 16;
        $pic_html = "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Fullsize image window does not fit
« Reply #2 on: February 11, 2004, 12:42:55 am »

capser's right: either change
Quote
       $winsizeX = $CURRENT_PIC_DATA['pwidth'] + 16;
        $winsizeY = $CURRENT_PIC_DATA['pheight'] + 16;
or change the margin properies for the body in your stylesheet...

GauGau
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 19 queries.