Skip to content

Commit 7086b5c

Browse files
committed
fix(scan): label position
1 parent 1939727 commit 7086b5c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/scan/src/core/web/utils/outline.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -473,10 +473,8 @@ async function paintOutlines(
473473
}
474474
export const getLabelRect = (label: OutlineLabel): DOMRect => {
475475
const textHeight = 11;
476-
477476
const labelX = label.rect.x;
478-
const labelY = label.rect.y - textHeight - 4;
479-
477+
const labelY = label.rect.y;
480478
return new DOMRect(labelX, labelY, label.textWidth + 4, textHeight + 4);
481479
};
482480

0 commit comments

Comments
 (0)