prefs: only reset content scrollTop when tab is actually changed
This commit is contained in:
parent
3d48d3a15f
commit
c97706bbee
1 changed files with 4 additions and 2 deletions
2
prefs.js
2
prefs.js
|
@ -1054,8 +1054,10 @@ function selectTab(id, noupdate, subop) {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
if (id != active_tab) {
|
||||||
var c = $('prefContent');
|
var c = $('prefContent');
|
||||||
c.scrollTop = 0;
|
c.scrollTop = 0;
|
||||||
|
}
|
||||||
} catch (e) { };
|
} catch (e) { };
|
||||||
|
|
||||||
if (!noupdate) {
|
if (!noupdate) {
|
||||||
|
|
Loading…
Reference in a new issue