diff options
-rw-r--r-- | demo.html | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -223,7 +223,7 @@ article { collapsedHeight: 384, afterToggle: function(trigger, element, expanded) { if(! expanded) { // The "Close" link was clicked - $('html, body').animate({scrollTop: $(element).offset().top}, {duration: 100}); + $('html, body').animate({scrollTop: element.offset().top}, {duration: 100}); } } }); |