{ "id": "106749", "key": "TIMOB-13544", "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": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-05-09T17:56:00.000+0000", "created": "2012-12-18T20:43:24.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "bubbleParent", "button", "ios", "qe-closed-3.1.1", "qe-testadded", "triage" ], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:44:14.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": "12305", "name": "Core", "description": "Central component of the Platform (outside of Tooling, or platform specific implementation details)" } ], "description": "*Problem description*\r\nthe bubbleParent property is not being set correctly, on Android and iOS for creation of a button, and on iOS only when using the setter function.\r\n\r\n*Test case*\r\n{code:lang=javascript|title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : \"#FFF\"\r\n});\r\n\r\ntry {\r\n\tvar button1 = Ti.UI.createButton({\r\n\t\tbubbleParent : false,\r\n\t});\r\n\tTi.API.info('button1 bubbleParent:false = ' + button1.getBubbleParent());\r\n\tbutton1.setBubbleParent(false);\r\n\tTi.API.info('button1 setBubbleParent(false) = ' + button1.getBubbleParent());\r\n\twin.add(button1);\r\n} catch (e) {\r\n\tTi.API.error('button1 getBubbleParent() error:' + e);\r\n}\r\n\r\nwin.open();\r\n{code}\r\n\r\n*Logs: Android*\r\n{code:lang=none|title=console}\r\nbutton1 bubbleParent:false = true\r\nbutton1 setBubblePrent(false) = false\r\n{code}\r\n\r\n*Logs: iOS*\r\n{code:lang=none|title=console}\r\nbutton1 bubbleParent:false = 0\r\nbutton1 setBubbleParent(false) = true\r\n{code}", "attachment": [ { "id": "34253", "filename": "log4.txt", "author": { "name": "miltgrin", "key": "miltgrin", "displayName": "Milt Grinberg", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-18T20:43:24.000+0000", "size": 13200, "mimeType": "text/plain" }, { "id": "34254", "filename": "sample4.js", "author": { "name": "miltgrin", "key": "miltgrin", "displayName": "Milt Grinberg", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-18T20:43:24.000+0000", "size": 798, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "TiAPI: bubbleParent property not being set properly on both iOS and Android", "creator": { "name": "miltgrin", "key": "miltgrin", "displayName": "Milt Grinberg", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [ { "id": "112866", "key": "TIMOB-13559", "fields": { "summary": "Android: the bubbleParent property is not set correctly during creation", "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": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } }, { "id": "112869", "key": "TIMOB-13560", "fields": { "summary": "iOS: the bubbleParent property does not work correctly", "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": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } ], "reporter": { "name": "miltgrin", "key": "miltgrin", "displayName": "Milt Grinberg", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 3.1 CI", "comment": { "comments": [ { "id": "232879", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Milt,\n\nWould you mind fleshing out the test case a bit, with the table view and window creation etc. so that we can just drop it into a project? Could you also state the Android device/emulator and OS version that you're working with?\n\nThanks!", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-02T18:16:56.000+0000", "updated": "2013-01-02T18:16:56.000+0000" }, { "id": "247349", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed with 3.1 CI (3.1.0.v20130410180128) with iOS 6 simulator and Samsung Galaxy S2 Android 2.3.6. Different behavior on iOS and Android - both platforms broken. The only method that works is setBubbleParent() on Android only.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-12T21:25:32.000+0000", "updated": "2013-04-12T21:25:32.000+0000" }, { "id": "247381", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Right now on Android, the bubbleParent property can not be set during creation of the proxy. It can only be set through \r\n{code}\r\nproxy.bubbleParent=true/false\r\n{code}\r\nor\r\n{code}\r\nproxy.setBubbleParent(boolean)\r\n{code}", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-12T23:26:12.000+0000", "updated": "2013-04-12T23:44:32.000+0000" }, { "id": "247389", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "So... do the docs explain this? Is the reason for it an underlying issue with code architecture?\n\nNow we need to establish why using setBubbleParent() doesn't work on iOS.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-12T23:42:18.000+0000", "updated": "2013-04-12T23:42:18.000+0000" }, { "id": "254916", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified as fixed and working as expected, including the 'setBubbleParent()' method.\r\n\r\nSample code:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : \"#FFF\"\r\n});\r\n \r\ntry {\r\n var button1 = Ti.UI.createButton({\r\n bubbleParent : false,\r\n });\r\n Ti.API.info('button1 bubbleParent:false = ' + button1.getBubbleParent());\r\n button1.setBubbleParent(true);\r\n Ti.API.info('button1 setBubbleParent(true) = ' + button1.getBubbleParent());\r\n win.add(button1);\r\n} catch (e) {\r\n Ti.API.error('button1 getBubbleParent() error:' + e);\r\n}\r\n \r\nwin.open();\r\n{code}\r\n\r\nIt returns on both iOS and Android:\r\nbutton1 bubbleParent:false = false\r\nbutton1 setBubbleParent(true) = true\r\n\r\n\r\nEnvironment:\r\n Appcelerator Studio 3.1.1.201305292130\r\n Titanium SDK 3.1.1.v20130529114554\r\n Alloy 1.1.3-alpha\r\n Titanium-Code-Processor 1.1.3-alpha3\r\n\r\nClosing.", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-30T18:53:56.000+0000", "updated": "2013-05-30T18:53:56.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }