coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: snowfore on February 10, 2004, 11:32:15 AM

Title: Fullsize image window does not fit
Post by: snowfore 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
Title: Fullsize image window does not fit
Post by: Casper 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,
   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')\">";
Title: Fullsize image window does not fit
Post by: Joachim Müller 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