Thickbox width

purplekarma / 2008-10-22 21:46:43   

Hello Group. I'm still tweaking with my site - www.purplekarma.com - and planning on using it mostly for my personal photos, etc and I'm using Thickbox for the galleries. I've been successful at tweaking a lot of the css, but one thing that I've not found/figured out is how to set the maximum width (and height) for the open thickbox window.

Is there a maximum picture size for the thickbox window? And if so, how do I set that max? Is it in the thickbox css or in the js itself? I've got just enough knowledge to tweak the css, but am pretty amateur with php & js. Thanks!

arsondpi / 2008-10-23 07:52:56   

in the js file find:

// Resizing large images
var pagesize = TB_getPageSize();
var x = pagesize[0] - 150;
var y = pagesize[1] - 150;
........

by adjusting the numbers in bold you'll have greater screen coverage for your image, if your images are bigger than the browser window (hence the Resizing large images comment in the js).
Change it to something like 120, for example, and see what happens. Make sure to test this with most browsers...

purplekarma / 2008-10-23 17:04:36   

That worked! Thanks! I had been afraid to really start tweaking the js, just in case i'd mess something up, so I greatly appreciate your help!

doereme / 2009-02-24 03:51:15   

is it possible to make an image taller than the browser window? When I change the numbers as shown above it effects the scrollbar in the background and makes the image larger but I am unable to scroll the active image, so the top and bottom get cut off. Any suggestions?

Can I add a scrollbar to the active image?

Vaska A / 2009-02-24 04:02:22   

Guys...messing with Thickbox is a world of difficulty...

I'm sorry I don't have better advice...just be ready to have to work and rework and test and retest everything. Not simple.

This thread has been closed, thank you.