forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: ckleiman on October 31, 2005, 04:56:34 am

Title: Scroll bars in pop-up window-How to get rid of?
Post by: ckleiman on October 31, 2005, 04:56:34 am
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?
Title: Re: Scroll bars in pop-up window-How to get rid of?
Post by: ckleiman on October 31, 2005, 05:10:21 am
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.