when switchin sections in help/api, scroll up

This commit is contained in:
rolux 2013-03-05 15:17:10 +00:00
parent 3316cc8e39
commit 908caf57f6
2 changed files with 2 additions and 1 deletions

View file

@ -163,6 +163,7 @@ pandora.ui.apiDialog = function() {
} else {
$text.html(overview);
}
$text.scrollTop(0);
return that;
}

View file

@ -140,7 +140,7 @@ pandora.ui.helpDialog = function() {
});
that.select = function(id) {
$text.html(text[id]);
$text.html(text[id]).scrollTop(0);
$text.find('img')
.css({
width: '100%',