so, commenting that first line of code does fix the problem for me in IE:

/*$("#TB_window").css({marginTop: '-' + parseInt((TB_HEIGHT / 2),10) +
'px'}); */<<<<< DELETE OR COMMENT THIS

but it also messes up the window in every other browser - it's too low now.
the bottom is lower then the window and invisible.

the second part of your code doesn't work for me at all, thickbox stops
working... does anyone know how to fix this in IE only, without affecting
any other browser?




Jack-113 wrote:
> 
> 
> Here is what worked for me:
> 
> Following problem:
> 
> IE 7 version xxxx.11 do produce a failure where the thickbox will be
> positioned by the absolulte top postion of the browser NOT the actuall
> scrolled position this will place the thickbox on top even if you have
> scrolled down to the bottom of the page.
> 
> in IE 7 xxxx.13 this Problem doesnt come up anymore.
> 
> Or just make this chagens:
> 
> 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'}); */<<<<< DELETE OR COMMENT THIS
> 
>   }
>   else {
>           var scrolledDown = $(document).scrollTop()-200;
> 
>          /* $("#TB_window").css("margin-top", scrolledDown +"px");
> */   <<<<< DELETE OR COMMENT THIS
> 
>   }
> }
> 
> 
> so this disables the top margin calculation, it seems that this is the
> problem and the thickbox will place the box in absolute middle by the
> actuall scrolled position:
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Thickbox-Position-is-Too-Low-in-IE-6-tp14138296s27240p15070612.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to