From c97706bbee1018a4b28159b3cd598d4d279adebb Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 6 Oct 2009 15:51:15 +0400 Subject: [PATCH] prefs: only reset content scrollTop when tab is actually changed --- prefs.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/prefs.js b/prefs.js index c39ed1fc..7f1f89df 100644 --- a/prefs.js +++ b/prefs.js @@ -1054,8 +1054,10 @@ function selectTab(id, noupdate, subop) { try { try { - var c = $('prefContent'); - c.scrollTop = 0; + if (id != active_tab) { + var c = $('prefContent'); + c.scrollTop = 0; + } } catch (e) { }; if (!noupdate) { -- 2.39.5