forked from 0x2620/pandora
when switchin sections in help/api, scroll up
This commit is contained in:
parent
3316cc8e39
commit
908caf57f6
2 changed files with 2 additions and 1 deletions
|
@ -163,6 +163,7 @@ pandora.ui.apiDialog = function() {
|
||||||
} else {
|
} else {
|
||||||
$text.html(overview);
|
$text.html(overview);
|
||||||
}
|
}
|
||||||
|
$text.scrollTop(0);
|
||||||
return that;
|
return that;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -140,7 +140,7 @@ pandora.ui.helpDialog = function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
that.select = function(id) {
|
that.select = function(id) {
|
||||||
$text.html(text[id]);
|
$text.html(text[id]).scrollTop(0);
|
||||||
$text.find('img')
|
$text.find('img')
|
||||||
.css({
|
.css({
|
||||||
width: '100%',
|
width: '100%',
|
||||||
|
|
Loading…
Reference in a new issue