{ "id": "152831", "key": "TIMOB-19897", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-11-17T14:14:11.000+0000", "created": "2015-11-09T12:08:49.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "issuelinks": [ { "id": "49860", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "152907", "key": "TIMOB-19921", "fields": { "summary": "Windows: Implement missing View properties", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-16T22:33:57.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "On Windows Phone 8.1, label's getRect method, which is supposed to return an object throws error: mainText. getRect() is not a function. (In 'mainText.getRect()', 'mainText.getRect' is undefined.\r\nI use this method on Android successfully and I need it to calculate weight of a label.\r\nAnother method which is working on iOS is toImage method, but it's iOS only.\r\nPlease look at it.\r\nThank you", "attachment": [], "flagged": false, "summary": "Label's getRect method returns \"not a function\" on Windows Phone 8.1", "creator": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "subtasks": [], "reporter": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "environment": "Windows 8.1, Appc Studio 4.3.3.201510212245, TiSDK 5.0.2GA", "closedSprints": [ { "id": 525, "state": "closed", "name": "2015 Sprint 23 SDK", "startDate": "2015-11-07T01:30:15.519Z", "endDate": "2015-11-21T01:30:00.000Z", "completeDate": "2015-11-23T02:54:27.887Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "369544", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Fixed by TIMOB-19837.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-11-10T13:14:27.000+0000", "updated": "2015-11-10T13:14:27.000+0000" }, { "id": "369545", "author": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "body": "Hi Kota,\r\nwill this fix be included in tommorow's(11.11.2015) release? \r\nThanks", "updateAuthor": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "created": "2015-11-10T13:22:08.000+0000", "updated": "2015-11-10T13:22:08.000+0000" }, { "id": "369548", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~max87] Hi Marian, I'm afraid not. This fix is merged very recently and is not reviewed by QE, so I don't think we can include this tomorrow.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-11-10T14:21:29.000+0000", "updated": "2015-11-10T14:25:06.000+0000" }, { "id": "369690", "author": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "body": "Thanks Kota, I'm looking forward to next release that fixes this and another windows phone bugs...", "updateAuthor": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "created": "2015-11-11T07:15:59.000+0000", "updated": "2015-11-11T07:15:59.000+0000" }, { "id": "370201", "author": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "body": "Hello Kota,\r\nmay I ask you when will be next release available? I read that at 11.11 was planned to release new version, but even today I haven't any updates available. I'm looking forward for this, because I develop multiplatform application and that release suppose to include many bug fixes for WP platform.\r\nThank you.", "updateAuthor": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "created": "2015-11-13T13:43:06.000+0000", "updated": "2015-11-13T13:43:06.000+0000" }, { "id": "370205", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "For now it's scheduled to release at 5.2.0, but I don't know exactly when it will be released...I would suggest trying out our very latest \"[Continuous Builds|http://builds.appcelerator.com.s3.amazonaws.com/index.html#master]\" version in case you need the update asap. (FYI [Installing Titanium SDK Continuous Builds|http://docs.appcelerator.com/platform/latest/#!/guide/Installing_Titanium_SDK_Continuous_Builds-section-29004843_InstallingTitaniumSDKContinuousBuilds-ManualInstall]). I think it's useful to try CI version because Windows SDK is actively updated, for not only bug fixes but also new APIs.\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-11-13T15:08:27.000+0000", "updated": "2015-11-13T15:08:27.000+0000" }, { "id": "370346", "author": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "body": "Hi Kota, \r\nI tried to download latest 5.2.0 SDK as you adviced, but problem with getRect() persist.\r\nIt throws new error: {color:red}Runtime error during postlayout event: invalid vector subscript.{color}\r\nIf I put that code outside postlayout event listener, it throws error:\r\n{color:red}Error while require (/app) invalid vector subscript{color}\r\nThanks", "updateAuthor": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "created": "2015-11-16T15:21:05.000+0000", "updated": "2015-11-16T15:22:23.000+0000" }, { "id": "370481", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~max87] Could you paste a sample code that reproduces this issue? I tried following but it runs without errors.\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow();\r\nvar view = Ti.UI.createLabel({ text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.' });\r\n\r\nwin.addEventListener('postlayout', function () {\r\n Ti.API.info(JSON.stringify(view.getRect()));\r\n});\r\n\r\nwin.add(view);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-11-17T04:58:21.000+0000", "updated": "2015-11-17T04:58:21.000+0000" }, { "id": "370514", "author": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "body": "Hello Kota,\r\nI'm sorry, getRect() is working fine, my error was caused by using Ti.API.log(old habit from iOS/Android) instead of Ti.API.info.\r\nThank you very much for your time and for fix.", "updateAuthor": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "created": "2015-11-17T10:58:20.000+0000", "updated": "2015-11-17T10:58:20.000+0000" }, { "id": "370523", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "ok cool. closing.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-11-17T14:14:11.000+0000", "updated": "2015-11-17T14:14:11.000+0000" }, { "id": "413387", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T22:33:57.000+0000", "updated": "2017-03-16T22:33:57.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }