From b1aa1b38796636f1af0c733d19b800329af32511 Mon Sep 17 00:00:00 2001 From: Mottie Date: Sun, 2 Feb 2014 01:28:03 -0600 Subject: [PATCH] css3stickyHeaders widget: scroll to table top after filtering --- js/widgets/widget-cssStickyHeaders.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/widgets/widget-cssStickyHeaders.js b/js/widgets/widget-cssStickyHeaders.js index 00316c1b..94bf6a11 100644 --- a/js/widgets/widget-cssStickyHeaders.js +++ b/js/widgets/widget-cssStickyHeaders.js @@ -43,6 +43,11 @@ "-webkit-transform" : finalY === 0 ? "" : "translate(0px," + finalY + "px)" }); }); + c.$table.bind('filterEnd', function() { + // scroll top of table into view + window.scrollTo(0, c.$table.position().top); + }); + }, remove: function(table, c, wo){ var namespace = '.cssstickyheader';