mattermost-mobile/patches/react-native-walkthrough-tooltip+1.6.0.patch
Daniel Espino García 9d1030a445
Push react native to 0.73.6 (#7863)
* Bump react native to 0.73.6

* iOS changes

* Fix gallery

* Fix test

* Add missing patch

* Unify react native navigation patch

* Update the rest of libraries

* iOS updates

* Update mattermost libraries

* Fix tests and final bumps

* iOS podfile update

* Update android locks

* Revert webrtc update because it was messing with the tests

* Update podfile for webrtc
2024-04-22 12:44:39 +02:00

25 lines
1.2 KiB
Diff

diff --git a/node_modules/react-native-walkthrough-tooltip/src/tooltip.js b/node_modules/react-native-walkthrough-tooltip/src/tooltip.js
index 3098692..a966dfb 100644
--- a/node_modules/react-native-walkthrough-tooltip/src/tooltip.js
+++ b/node_modules/react-native-walkthrough-tooltip/src/tooltip.js
@@ -216,7 +216,7 @@ class Tooltip extends Component {
this.setState(
{
windowDims: dims.window,
- contentSize: new Size(0, 0),
+ // contentSize: new Size(0, 0),
adjustedContentSize: new Size(0, 0),
anchorPoint: new Point(0, 0),
tooltipOrigin: new Point(0, 0),
@@ -272,9 +272,9 @@ class Tooltip extends Component {
this.childWrapper.current &&
typeof this.childWrapper.current.measure === 'function'
) {
- this.childWrapper.current.measure(
+ this.childWrapper.current.measureInWindow(
(x, y, width, height, pageX, pageY) => {
- const childRect = new Rect(pageX, pageY, width, height);
+ const childRect = new Rect(x, y, width, height);
if (
Object.values(childRect).every(value => value !== undefined)
) {