souporserious/react-measure

contentRect.offset.top is wrong on orientation change (Chrome Android)

dkrieger opened this issue · 0 comments

I'm getting the right values on render, but the wrong values on orientation change. Inside my wrapped component, there is another wrapped component in use tracking margin, and that value is correct on orientation change. height/width values included in contentRect.offset are correctly updating. Is there a problem with rendering a wrapped component inside another wrapped component?

Side note: it is not clear what innerRef is. The usage of some of the props in general in the README aren't apparent.