From 3774eb1ef765521d350a9be6a228ef270508ae4e Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 22 Jan 2014 12:48:32 +0000 Subject: [PATCH] fix scrollToSelectedEmbed --- static/js/textPanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }