coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: cwt on February 16, 2004, 07:48:30 PM

Title: Top margin and Bottom margin of the slideshow
Post by: cwt on February 16, 2004, 07:48:30 PM
Hi,

I have a problem with top margin and bottom margin of the slideshow. In the normal view, there isn't any problem with the top margin and bottom margin. But when I start using the slideshow, it creates a huge margin on top and bottom, which push the picture very far down. I have to move the page down in order to see the slide show. Can anyone help me? Thanks!
Title: Top margin and Bottom margin of the slideshow
Post by: Joachim Müller on February 17, 2004, 03:27:50 AM
I haven't looked into this very deeply, but I guess you could play with the setting to be found in displayimage.php - look for
Quote$params = array('{CELL_HEIGHT}' => $CONFIG['picture_width'] + 100,

GauGau
Title: Top margin and Bottom margin of the slideshow
Post by: Widi on February 17, 2004, 02:41:11 PM
Look/search for this line (think it's line 451 in cpg 1.2)

Quote$params = array('{CELL_HEIGHT}' => $CONFIG['picture_width'] + 100,

and replace it with:

Quote$params = array('{CELL_HEIGHT}' => $CONFIG['picture_height'],

Now it makes te cell height as high as the height of the shown picture.
Title: Top margin and Bottom margin of the slideshow
Post by: cwt on February 18, 2004, 06:12:01 AM
Thank you gaugau and Widi! Its work!!