Skip to content

Commit 0e68b96

Browse files
jlukicCopilot
andauthored
Bug: Fix typo in border calculation
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 0009557 commit 0e68b96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/query/src/query.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2363,8 +2363,8 @@ export class Query {
23632363

23642364
// 2. Local (positioningParent) Coordinates
23652365
const localCoords = {
2366-
top: round(elRect.top - parentRect.top - parentRect.box.border.left + $parent.scrollTop()),
2367-
left: round(elRect.left - parentRect.left - parentRect.box.border.top + $parent.scrollLeft()),
2366+
top: round(elRect.top - parentRect.top - parentRect.box.border.top + $parent.scrollTop()),
2367+
left: round(elRect.left - parentRect.left - parentRect.box.border.left + $parent.scrollLeft()),
23682368
};
23692369
if (!isSetter && type === 'local') {
23702370
return localCoords;

0 commit comments

Comments
 (0)