Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
134cec9796
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user