1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 07:08:08 +02:00

Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Xavier Fung 2012-08-29 09:17:02 +08:00
commit 134cec9796

View file

@ -38,6 +38,8 @@ function scrollIntoView(element, spot) {
while (parent.clientHeight == parent.scrollHeight) {
offsetY += parent.offsetTop;
parent = parent.offsetParent;
if (!parent)
return; // no need to scroll
}
if (spot)
offsetY += spot.top;