[TIMOB-20241] Windows: Implement Ti.UI.View.convertPointToView( point, destinationView )
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-02-12T17:24:28.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 5.3.0 |
Components | Windows |
Labels | qe-5.3.0 |
Reporter | Kai Lu |
Assignee | Gary Mathews |
Created | 2016-01-15T12:14:20.000+0000 |
Updated | 2016-05-02T22:44:27.000+0000 |
Description
convertPointToView( point, destinationView ) : Point
Translates a point from this view's coordinate system to another view's coordinate system.
Returns null if either view is not in the view hierarchy.
Keep in mind that views may be removed from the view hierarchy if their window is blurred or if the view is offscreen (such as in some situations with Titanium.UI.ScrollableView).
If this view is a Titanium.UI.ScrollView, the view's x and y offsets are subtracted from the return value.
http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.View-method-convertPointToView
- https://github.com/appcelerator/titanium_mobile/blob/707baf65702530b957513651af4987a9f6a0fd56/android/titanium/src/java/org/appcelerator/titanium/proxy/TiViewProxy.java#L1149
- https://github.com/appcelerator/titanium_mobile/blob/bc85170157d3bebc5de1d61a9fe6e34bce84a8c9/mobileweb/titanium/Ti/_/UI/Element.js#L274
- https://github.com/appcelerator/titanium_mobile/blob/8e5f028f5995389cb31a35b217ebf033d230fc65/iphone/Classes/TiViewProxy.m#L667
https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.uielement.transformtovisual.aspx
PR: https://github.com/appcelerator/titanium_mobile_windows/pull/558
Verified as fixed. Tested on: Windows 10 Pro Windows Phone 10.0 (Microsoft Lumia 640 LTE) Appc Studio: 4.6.0.201604290815 Ti SDK: 5.3.0.v20160430043601 Appc NPM: 4.2.5-5 Appc Core: 5.3.0-40 Node: v4.4.2 *Closing Ticket.*