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

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

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