Open ghost opened 5 years ago
I have a similar case, where RX.UserInterface.measureLayoutRelativeToWindow
also do not provide correct information on mobile:
console.log('Will measure scrollview', scrollView)
RX.UserInterface.measureLayoutRelativeToWindow(scrollView).done((layoutinfo:RX.Types.LayoutInfo) => {
console.log('Did measure scrollview', layoutinfo)
})
In web (Electron) this works out completly correct. On mobile all values received from the LayoutInfo
are 0
.
Looking forward to see a solution on this. :-)
@shameister @ghostplant -- Do you think this is still an issue? If it is, it would either of you know what it would take to fix it?
Method
RX.UserInterface.measureLayoutRelativeToAncestor
gives different results for Electron and Web than for UWP, Android and iOS when measuring two elements where one is in a scrollable container (RX.ScrollView).In comparison to that - method
RX.UserInterface.measureLayoutRelativeToWindow
gives always true distance on screen for all platforms.