Skip to content

Commit 2f6011e

Browse files
committed
fix: use getBondingClientRect instead of getRect for measureInWindow
1 parent a3ea2a0 commit 2f6011e

File tree

1 file changed

+1
-1
lines changed
  • packages/react-native-web/src/exports/UIManager

1 file changed

+1
-1
lines changed

packages/react-native-web/src/exports/UIManager/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const UIManager = {
8282
measureInWindow(node, callback) {
8383
if (node) {
8484
setTimeout(() => {
85-
const { height, left, top, width } = getRect(node);
85+
const { height, left, top, width } = node.getBoundingClientRect();
8686
callback(left, top, width, height);
8787
}, 0);
8888
}

0 commit comments

Comments
 (0)