Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20241] Windows: Implement Ti.UI.View.convertPointToView( point, destinationView )

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-02-12T17:24:28.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.3.0
ComponentsWindows
Labelsqe-5.3.0
ReporterKai Lu
AssigneeGary Mathews
Created2016-01-15T12:14:20.000+0000
Updated2016-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

Comments

  1. Gary Mathews 2016-02-12

    PR: https://github.com/appcelerator/titanium_mobile_windows/pull/558
  2. Harry Bryant 2016-05-02

    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.*

JSON Source