Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Captions cut-off
https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=1930
Page 1 of 1

Author:  kevinbuckley70 [ 19. Apr 2009, 20:11 ]
Post subject:  Captions cut-off

I have quite long captions & they display OK normally. However, in slideshow mode, the bottom of the captions are cut off. Any ideas? - Regards, Kevin

Author:  TinyWebGallery [ 19. Apr 2009, 20:46 ]
Post subject: 

The slideshows are running inside an iframe. If they are too long then they are cut off (I think you have more than 2 lines?). You would have to increase the size of the iframe to fix this.

- Michael

Author:  kevinbuckley70 [ 19. Apr 2009, 21:13 ]
Post subject: 

Where do I change this? - Thanks, Kevin

Author:  TinyWebGallery [ 19. Apr 2009, 21:32 ]
Post subject: 

look for

iframe id='slideframe'

in inc/image.inc.php. There is a iframe definition for each slideshow type.

- Michael

Author:  kevinbuckley70 [ 19. Apr 2009, 23:50 ]
Post subject: 

Isn't it this part that I need to change?

$heightaddon = 20;
if ($show_captions) {
$heightaddon += 20;
}

Is there a way of knowing the actual height needed for any caption?

Regards, Kevin

Author:  TinyWebGallery [ 19. Apr 2009, 23:56 ]
Post subject: 

yes.

The iframe is the same for all images of a slideshow. you would have to check how may lines the longest caption has.

How many lines has your longest caption?

- Michael

Author:  kevinbuckley70 [ 20. Apr 2009, 00:07 ]
Post subject: 

So far 9. Is it possible to calculate this height (by knowing the number of characters, font width, frame width etc.)?

Regards, Kevin

Author:  TinyWebGallery [ 21. Apr 2009, 11:29 ]
Post subject: 

Everything is possible. But you would have to check all captions of a folder first.
An other point is having 9 lines of caption which is in a slideshow which shows a new image every 5 or 10 sec?

If you don't use the maximized slideshow then normally quite some space is below so you can make the iframe larger without any problems. YOu just ja to check if the slideshow still looks good in your layout.

- Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/