Skip to content

Commit 2ad3e2f

Browse files
committed
Fix Position Overflow
Overflow is once again adjusting the position
1 parent 42d5812 commit 2ad3e2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ function position(options: IOptions): PositionData {
7979
},
8080
}
8181
: options.anchor.getBoundingClientRect(),
82-
originalDisplay = options.target.style.display,
83-
_targetRect = options.target.getBoundingClientRect();
82+
originalDisplay = options.target.style.display;
8483

8584
options.target.style.display = 'block';
85+
const _targetRect = options.target.getBoundingClientRect();
8686
options.target.style.display = originalDisplay;
8787

8888
// Adjust to scrollable regions

0 commit comments

Comments
 (0)