By the way, there was also a problem with the thickbox position after
scrolling down on the page and then clicking on the thickbox link...

FYI, using the dimensions plugin and $(document).scrollTop(), I think
I've just made a fix for this.

Here's how I've modified the tb_position function in thickbox.js:

function tb_position() {
$("#TB_window").css({marginLeft: '-' + parseInt((TB_WIDTH / 2),10) +
'px', width: TB_WIDTH + 'px'});
        if ( !(jQuery.browser.msie && jQuery.browser.version < 7)) { // take
away IE6
                $("#TB_window").css({marginTop: '-' + parseInt((TB_HEIGHT / 
2),10) +
'px'});
        }
        else {
                var scrolledDown = $(document).scrollTop()-200;
                $("#TB_window").css("margin-top", scrolledDown +"px");
        }
}

Reply via email to