Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

measureInWindow returns wrong value on Android #760

Open
Mohamed-Takh opened this issue Jul 19, 2024 · 0 comments
Open

measureInWindow returns wrong value on Android #760

Mohamed-Takh opened this issue Jul 19, 2024 · 0 comments

Comments

@Mohamed-Takh
Copy link

Hi everyone !

Many thanks for your work on this library

While I'm using it on Android, I have wrong values on pickerRef.current.measureInWindow((...args) => resolve(args)) (link here)

I added some logs during execution and that's the result :

pickerRef.current.measure() :
  x =  0
  y =  0
  width =  416
  height =  50
  pageX =  16
  pageY =  307
pickerRef.current.measureInWindow() :
  x =  33349.33203125
  y =  33640.33203125
  width =  416
  height =  50

As you can see, values for pickerRef.current.measureInWindow() are too high and whatever are other values in the formula (maxHeight, pickerHeight, and bottomOffset) the result will always be 'bottom' ...

I tried many mesures and I always have x = pageX + 33333 (and the same for y).

Some of you has any idea ?

Thank you very much for help !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant