IIRC this can be caused by padding and/or margin being other than 0. On Tue, May 6, 2008 at 2:10 PM, Yann <[EMAIL PROTECTED]> wrote:
> > I got a smilingly simple problem but I have spent way to much time > trying to fix it unsuccessfully already... Hoping some jQuery guru can > figure this one out for me... > > The javascript is pretty basic: > > // set defaults > $('.news_content').hide(); > $('.news_item_bg div:first').show(); > $('#latest_news a:first').addClass('selected'); > // set news links behavior > $('#latest_news a').click(function () { > $('#latest_news a').removeClass('selected'); > $(this).addClass('selected'); > > var target = $(this).attr('href'); > > $(".news_content:visible").animate({color: '#fff'}, > 500).slideUp(1000, function() { > $(target).slideDown(1000).animate({color: '#fff'}, > 1000); > }); > return false; > }); > > But when it slides down, the end of the animation is choppy, more > accurately, it seems that the height is calculated wrong during the > animation and readjusted at the end... > > Anyone else has experienced this problem before? I must be doing > something wrong since Google search didn't turn anything up... > > Thanks! > -- -- Scott Trudeau scott.trudeau AT gmail DOT com http://sstrudeau.com/ AIM: sodthestreets