Fixes find position in HiDPI displays
This commit is contained in:
parent
43db959367
commit
fdd5d414ed
2 changed files with 7 additions and 2 deletions
|
@ -113,6 +113,9 @@ function scrollIntoView(element, spot) {
|
|||
return;
|
||||
}
|
||||
while (parent.clientHeight == parent.scrollHeight) {
|
||||
if (parent.dataset._scaleY) {
|
||||
offsetY /= parent.dataset._scaleY;
|
||||
}
|
||||
offsetY += parent.offsetTop;
|
||||
parent = parent.offsetParent;
|
||||
if (!parent)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue