forked from 0x2620/pandora
text names
This commit is contained in:
parent
775003c298
commit
0ef598195c
4 changed files with 16 additions and 7 deletions
|
|
@ -190,7 +190,7 @@ pandora.ui.textPanel = function() {
|
|||
}
|
||||
|
||||
function scrollToSelectedEmbed() {
|
||||
var scrollTop = Math.max(pandora.$ui.text[0].scrollTop + $('#embed' + selected).offset().top - 50, 0),
|
||||
var scrollTop = Math.max(pandora.$ui.text[0].scrollTop + $('#embed' + selected).offset().top - 48, 0),
|
||||
position = 100 * scrollTop / pandora.$ui.text[0].scrollHeight;
|
||||
pandora.$ui.text.scrollTo(position);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue