mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-06-09 10:24:03 +00:00
deploy: c4acec0880
This commit is contained in:
parent
67afc9d683
commit
6d9875ae68
151 changed files with 3428 additions and 3428 deletions
|
@ -78,11 +78,11 @@ var autoComplete = (function(){
|
|||
parentOffsetLeft = parentElement.getBoundingClientRect().left;
|
||||
parentOffsetTop = parentElement.getBoundingClientRect().top;
|
||||
} else {
|
||||
pageXOffset = window.pageXOffset;
|
||||
pageYOffset = window.pageYOffset;
|
||||
pageXOffset = window.pageXOffset || document.documentElement.scrollLeft;
|
||||
pageYOffset = window.pageYOffset || document.documentElement.scrollTop;
|
||||
}
|
||||
that.sc.style.left = Math.round(rect.left + (pageXOffset || document.documentElement.scrollLeft) + o.offsetLeft - parentOffsetLeft) + 'px';
|
||||
that.sc.style.top = Math.round(rect.bottom + (pageYOffset || document.documentElement.scrollTop) + o.offsetTop - parentOffsetTop) + 'px';
|
||||
that.sc.style.left = Math.round(rect.left + pageXOffset + o.offsetLeft - parentOffsetLeft) + 'px';
|
||||
that.sc.style.top = Math.round(rect.bottom + pageYOffset + o.offsetTop - parentOffsetTop) + 'px';
|
||||
that.sc.style.width = Math.round(rect.right - rect.left) + 'px'; // outerWidth
|
||||
if (!resize) {
|
||||
that.sc.style.display = 'block';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue