From fd35b47671a103b4341aa1d911758bd13c4ed9c1 Mon Sep 17 00:00:00 2001 From: James Jeffery <jaysquare@gmail.com> Date: Mon, 19 Jan 2009 18:59:35 +0000 Subject: [PATCH] Scroll bar is moved up if tab is changed while top portion of module list is not visible. --- module_filter_tab.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/module_filter_tab.js b/module_filter_tab.js index 5724ea6..d680c70 100644 --- a/module_filter_tab.js +++ b/module_filter_tab.js @@ -19,6 +19,11 @@ if (Drupal.jsEnabled) { // Filter rows depending on tab selected. moduleFilterTabLoad(); + + if ($("#module-filter-squeeze table.sticky-header").css('visibility') == 'visible') { + destination = $("#module-filter-left").offset().top; + $("html:not(:animated),body:not(:animated)").scrollTop(destination - 15); + } } return false; }); -- GitLab