Scroll bars in pop-up window-How to get rid of? Scroll bars in pop-up window-How to get rid of?
 

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

Scroll bars in pop-up window-How to get rid of?

Started by ckleiman, October 31, 2005, 04:56:34 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ckleiman

Hi all,

Have noticed in some of the themes that when you click on the mid sized image the larger image opens in a centered window that auto sizes to the image (classic and eyeball, for example) and in other themes the centered window opens with the image and scrollbars (Blackbirch, and hardwired, for example. This led me to believe this was a theme issue. However, after going through the template.html, theme.php and style.css I can't find the code.

From reading other threads, I believe it's in a root php file, displayimage.php


So, if the code is in this file, and this file is used by all themes, why the differences in pop up behavior between themes?

ckleiman

Well, I found the answer in this post http://forum.coppermine-gallery.net/index.php?topic=9920.0

You have to change the following code in the displayimage.php

$winsizeX = $CURRENT_PIC_DATA['pwidth'] + 18;
            $winsizeY = $CURRENT_PIC_DATA['pheight'] + 18;

Default is 16 and I changed to 18 and no more scroll bars for the blackbirch.