Fullsize image window does not fit Fullsize image window does not fit
 

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

Fullsize image window does not fit

Started by snowfore, February 10, 2004, 11:32:15 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

snowfore

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

Casper

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,
   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')\">";
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

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