From 768ea479593f8ca93d9db28e36a53072e773f103 Mon Sep 17 00:00:00 2001 From: Alain Folletete Date: Fri, 22 Feb 2013 12:32:34 +0100 Subject: [PATCH 1/2] Replace .attr('offsetheight') by .height() in order to work with new jQuery version --- jquery.stickyscroll.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jquery.stickyscroll.js b/jquery.stickyscroll.js index 0336994..f684c2c 100644 --- a/jquery.stickyscroll.js +++ b/jquery.stickyscroll.js @@ -37,7 +37,7 @@ function bottomBoundary() { return $(document).height() - settings.container.offset().top - - settings.container.attr('offsetHeight'); + - settings.container.height(); } function topBoundary() { @@ -45,7 +45,7 @@ } function elHeight(el) { - return $(el).attr('offsetHeight'); + return $(el).height(); } // make sure user input is a jQuery object @@ -160,4 +160,4 @@ } }; -})(jQuery); \ No newline at end of file +})(jQuery); From 86611e55c2a5f1750bc59942352d75d31f713620 Mon Sep 17 00:00:00 2001 From: Alain Folletete Date: Fri, 22 Feb 2013 12:33:01 +0100 Subject: [PATCH 2/2] Update demo files with jQuery 1.9.1 version --- demo-basic.html | 2 +- demo.html | 2 +- fluid-demo.html | 2 +- manual-demo.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/demo-basic.html b/demo-basic.html index 456f976..70601b2 100644 --- a/demo-basic.html +++ b/demo-basic.html @@ -59,7 +59,7 @@

Long sidebar

- + + + +