views:

71

answers:

1

My thickbox renders correctly in my dev environment, but in prod, the default height kicks in even though I'm supplying width and height params.

        TB_WIDTH = (params['width']*1) + 30 || 630; //defaults to 630 if no paramaters were added to URL
        TB_HEIGHT = (params['height']*1) + 40 || 440; //defaults to 440 if no paramaters were added to URL

        ajaxContentW = TB_WIDTH - 30;
        ajaxContentH = TB_HEIGHT - 45;

Any thoughts on why this might be happening?

A: 

I figured out that this is happening because thickbox is somehow remembering the dimensions of the previously rendered instance. So even though I'm passing in the height parameter, it's ignoring it and using the previously used height. Still not sure how to solve it though...any suggestions would be helpful.

Prabhu