Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 2b42358

Browse files
committed
fix(select): fix slight pixel miss-alignment on select open
closes #3594
1 parent d8d3e4c commit 2b42358

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/select/select.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,9 +1063,9 @@ function SelectProvider($$interimElementProvider) {
10631063
transformOrigin = '50% 100%';
10641064
}
10651065
} else {
1066-
left = targetRect.left + centeredRect.left - centeredRect.paddingLeft;
1066+
left = (targetRect.left + centeredRect.left - centeredRect.paddingLeft) + 2;
10671067
top = Math.floor(targetRect.top + targetRect.height / 2 - centeredRect.height / 2 -
1068-
centeredRect.top + contentNode.scrollTop);
1068+
centeredRect.top + contentNode.scrollTop) + 2;
10691069

10701070

10711071
transformOrigin = (centeredRect.left + targetRect.width / 2) + 'px ' +

0 commit comments

Comments
 (0)