stickUp icon indicating copy to clipboard operation
stickUp copied to clipboard

if `div.stuckMenu` next element is empty,`currentMarginT` is `NaN`

Open wweggplant opened this issue 8 years ago • 0 comments

My jQuery version is 1.8. I find that if div.stuckMenu next element is empty,currentMarginT is NaN

 currentMarginT = parseInt($(this).closest('div').css('margin-top')) // line 64

it causes a problem that code does not work in line 100 ~ 103,

$('.stuckMenu').next().closest('div').css({
    'margin-top': stickyHeight + stickyMarginB + currentMarginT + 'px'
}, 10);

wweggplant avatar Jul 08 '16 06:07 wweggplant