only scroll if we have position

This commit is contained in:
j 2013-10-24 13:37:50 +00:00
parent 4fff8b0ddb
commit acb50e0752

View file

@ -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;
};