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

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

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.