only scroll if text is selected

This commit is contained in:
j 2013-10-17 15:04:35 +00:00
parent 104292cba8
commit b270424a14

View file

@ -312,6 +312,7 @@ pandora.ui.textHTML = function(text) {
}) })
.appendTo($content); .appendTo($content);
pandora.user.ui.texts[pandora.user.ui.text] &&
scrollTo(pandora.user.ui.texts[pandora.user.ui.text].position || 0); scrollTo(pandora.user.ui.texts[pandora.user.ui.text].position || 0);
function getHeight() { function getHeight() {