forked from 0x2620/pandora
only scroll if we have position
This commit is contained in:
parent
4fff8b0ddb
commit
acb50e0752
1 changed files with 2 additions and 1 deletions
|
@ -338,7 +338,8 @@ pandora.ui.textHTML = function(text) {
|
|||
}).css({
|
||||
width: getWidth() + 'px'
|
||||
});
|
||||
scrollTo(pandora.user.ui.texts[pandora.user.ui.text].position || 0);
|
||||
pandora.user.ui.texts[pandora.user.ui.text] &&
|
||||
scrollTo(pandora.user.ui.texts[pandora.user.ui.text].position || 0);
|
||||
return that;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue