クロムで動作していません.... element.offset().top 任意の提案
$(window).load(function() {
$(".scroll-box").scroll(function(){
$('#document_activity .doc-draft.item.parent').each(function(i) {
$movingLableTop = [];
$movingLableHeight = [];
$fixedLableTop = $('#fixed_version').find('.version').offset().top;
$movingLableTop.push($(this).offset().top);
$movingLableHeight.push($(this).height());
if ($fixedLableTop > ($movingLableTop + $movingLableHeight)){
$('#fixed_version').find('.version').html($(this).find('.version').html());
}
});
});
});
多くの人が、chrome が offset() の正しい値を取得できないと述べています