Skip to content

Commit adb8b9a

Browse files
jlukicCopilot
andauthored
Bug: Reversed borders on calc
Co-authored-by: Copilot <[email protected]>
1 parent 83e6ef2 commit adb8b9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/query/src/query.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2375,7 +2375,7 @@ export class Query {
23752375
if (relativeTo) {
23762376
const relativeRect = $relative.dimensions();
23772377
relativeCoords = {
2378-
top: round(elRect.top - relativeRect.top - relativeRect.box.border.left),
2378+
top: round(elRect.top - relativeRect.top - relativeRect.box.border.top),
23792379
left: round(elRect.left - relativeRect.left - relativeRect.box.border.left),
23802380
};
23812381
if (!isSetter && type === 'relative') {

0 commit comments

Comments
 (0)