From cfa6962a915489489d43cba6f8e93e838b6484a9 Mon Sep 17 00:00:00 2001 From: Nina Vyedin Date: Mon, 4 Mar 2013 16:26:40 -0500 Subject: [webdoc] fix the sidebar 'scroll to top' behavior --- webdoc/plugins/sidebar-plugin/dependencies/ptree/tree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webdoc') diff --git a/webdoc/plugins/sidebar-plugin/dependencies/ptree/tree.js b/webdoc/plugins/sidebar-plugin/dependencies/ptree/tree.js index 389be0dd..6e1da0d3 100755 --- a/webdoc/plugins/sidebar-plugin/dependencies/ptree/tree.js +++ b/webdoc/plugins/sidebar-plugin/dependencies/ptree/tree.js @@ -245,7 +245,7 @@ function PTree () root = node; if (i == elements.length - 1) { thisSave.SelectNode (node[0]); - var container = $('#contents').parent (); + var container = $('#contents').parent().parent(); container.scrollTop (node[0].offsetTop - 100); } }; -- cgit v1.2.3