AutosuggestPlugin: pageYOffset --> scrollY

This commit is contained in:
Alex Gleason
2023-09-23 14:05:23 -05:00
parent b14a6586b4
commit 8f49446a15

View File

@ -213,8 +213,8 @@ const useMenuAnchorRef = (
if (rootElement !== null && resolution !== null) {
const { left, top, width, height } = resolution.getRect();
containerDiv.style.top = `${top + window.pageYOffset}px`;
containerDiv.style.left = `${left + window.pageXOffset}px`;
containerDiv.style.top = `${top + window.scrollY}px`;
containerDiv.style.left = `${left + window.scrollX}px`;
containerDiv.style.height = `${height}px`;
containerDiv.style.width = `${width}px`;