diff --git a/static/js/textPanel.js b/static/js/textPanel.js index c329aef7e..2b58c2692 100644 --- a/static/js/textPanel.js +++ b/static/js/textPanel.js @@ -190,7 +190,7 @@ pandora.ui.textPanel = function() { function scrollToSelectedEmbed() { var scrollTop = Math.max(pandora.$ui.text[0].scrollTop + $('#embed' + selected).offset().top - 48, 0), position = 100 * scrollTop / Math.max(1, - pandora.$ui.text[0].scrollHeight - pandora.$ui.text.height()); + pandora.$ui.text[0].scrollHeight); pandora.$ui.text.scrollTo(position); }