{"action":"created","issue":{"url":"https://api.github.com/repos/appcelerator/titanium_mobile/issues/8730","repository_url":"https://api.github.com/repos/appcelerator/titanium_mobile","labels_url":"https://api.github.com/repos/appcelerator/titanium_mobile/issues/8730/labels{/name}","comments_url":"https://api.github.com/repos/appcelerator/titanium_mobile/issues/8730/comments","events_url":"https://api.github.com/repos/appcelerator/titanium_mobile/issues/8730/events","html_url":"https://github.com/appcelerator/titanium_mobile/pull/8730","id":198975197,"number":8730,"title":"[TIMOB-24277] Android: Fix horizontal layout when using 'right'","user":{"login":"garymathews","id":8366993,"avatar_url":"https://avatars.githubusercontent.com/u/8366993?v=3","gravatar_id":"","url":"https://api.github.com/users/garymathews","html_url":"https://github.com/garymathews","followers_url":"https://api.github.com/users/garymathews/followers","following_url":"https://api.github.com/users/garymathews/following{/other_user}","gists_url":"https://api.github.com/users/garymathews/gists{/gist_id}","starred_url":"https://api.github.com/users/garymathews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garymathews/subscriptions","organizations_url":"https://api.github.com/users/garymathews/orgs","repos_url":"https://api.github.com/users/garymathews/repos","events_url":"https://api.github.com/users/garymathews/events{/privacy}","received_events_url":"https://api.github.com/users/garymathews/received_events","type":"User","site_admin":false},"labels":[{"id":319882185,"url":"https://api.github.com/repos/appcelerator/titanium_mobile/labels/android","name":"android","color":"006b75","default":false},{"id":319882979,"url":"https://api.github.com/repos/appcelerator/titanium_mobile/labels/bug","name":"bug","color":"e11d21","default":true}],"state":"open","locked":false,"assignee":{"login":"fmerzadyan","id":22060147,"avatar_url":"https://avatars.githubusercontent.com/u/22060147?v=3","gravatar_id":"","url":"https://api.github.com/users/fmerzadyan","html_url":"https://github.com/fmerzadyan","followers_url":"https://api.github.com/users/fmerzadyan/followers","following_url":"https://api.github.com/users/fmerzadyan/following{/other_user}","gists_url":"https://api.github.com/users/fmerzadyan/gists{/gist_id}","starred_url":"https://api.github.com/users/fmerzadyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmerzadyan/subscriptions","organizations_url":"https://api.github.com/users/fmerzadyan/orgs","repos_url":"https://api.github.com/users/fmerzadyan/repos","events_url":"https://api.github.com/users/fmerzadyan/events{/privacy}","received_events_url":"https://api.github.com/users/fmerzadyan/received_events","type":"User","site_admin":false},"assignees":[{"login":"fmerzadyan","id":22060147,"avatar_url":"https://avatars.githubusercontent.com/u/22060147?v=3","gravatar_id":"","url":"https://api.github.com/users/fmerzadyan","html_url":"https://github.com/fmerzadyan","followers_url":"https://api.github.com/users/fmerzadyan/followers","following_url":"https://api.github.com/users/fmerzadyan/following{/other_user}","gists_url":"https://api.github.com/users/fmerzadyan/gists{/gist_id}","starred_url":"https://api.github.com/users/fmerzadyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmerzadyan/subscriptions","organizations_url":"https://api.github.com/users/fmerzadyan/orgs","repos_url":"https://api.github.com/users/fmerzadyan/repos","events_url":"https://api.github.com/users/fmerzadyan/events{/privacy}","received_events_url":"https://api.github.com/users/fmerzadyan/received_events","type":"User","site_admin":false},{"login":"maggieaxway","id":24284661,"avatar_url":"https://avatars.githubusercontent.com/u/24284661?v=3","gravatar_id":"","url":"https://api.github.com/users/maggieaxway","html_url":"https://github.com/maggieaxway","followers_url":"https://api.github.com/users/maggieaxway/followers","following_url":"https://api.github.com/users/maggieaxway/following{/other_user}","gists_url":"https://api.github.com/users/maggieaxway/gists{/gist_id}","starred_url":"https://api.github.com/users/maggieaxway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maggieaxway/subscriptions","organizations_url":"https://api.github.com/users/maggieaxway/orgs","repos_url":"https://api.github.com/users/maggieaxway/repos","events_url":"https://api.github.com/users/maggieaxway/events{/privacy}","received_events_url":"https://api.github.com/users/maggieaxway/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/appcelerator/titanium_mobile/milestones/3","html_url":"https://github.com/appcelerator/titanium_mobile/milestone/3","labels_url":"https://api.github.com/repos/appcelerator/titanium_mobile/milestones/3/labels","id":1907490,"number":3,"title":"6.1.0","description":"[Show milestone in JIRA](https://jira.appcelerator.org/projects/TIMOB/versions/17608)","creator":{"login":"hansemannn","id":10667698,"avatar_url":"https://avatars.githubusercontent.com/u/10667698?v=3","gravatar_id":"","url":"https://api.github.com/users/hansemannn","html_url":"https://github.com/hansemannn","followers_url":"https://api.github.com/users/hansemannn/followers","following_url":"https://api.github.com/users/hansemannn/following{/other_user}","gists_url":"https://api.github.com/users/hansemannn/gists{/gist_id}","starred_url":"https://api.github.com/users/hansemannn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hansemannn/subscriptions","organizations_url":"https://api.github.com/users/hansemannn/orgs","repos_url":"https://api.github.com/users/hansemannn/repos","events_url":"https://api.github.com/users/hansemannn/events{/privacy}","received_events_url":"https://api.github.com/users/hansemannn/received_events","type":"User","site_admin":false},"open_issues":18,"closed_issues":142,"state":"open","created_at":"2016-07-27T15:53:48Z","updated_at":"2017-02-16T17:06:27Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2017-01-05T14:59:34Z","updated_at":"2017-02-16T19:14:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/8730","html_url":"https://github.com/appcelerator/titanium_mobile/pull/8730","diff_url":"https://github.com/appcelerator/titanium_mobile/pull/8730.diff","patch_url":"https://github.com/appcelerator/titanium_mobile/pull/8730.patch"},"body":"- Correctly calculate components using `right` when used in a horizontal layout\r\n\r\n###### TEST CASE\r\n```Javascript\r\nvar win = Ti.UI.createWindow(),\r\n\titems = [],\r\n\ttemplate = {\r\n\t\tproperties: {\r\n\t\t\taccessoryType: Ti.UI.LIST_ACCESSORY_TYPE_NONE,\r\n\t\t\tbackgroundColor: 'white',\r\n\t\t\theight: Ti.UI.SIZE,\r\n\t\t\tlayout: 'horizontal'\r\n\t\t},\r\n\t\tevents: {\r\n\t\t\tclick: function(e) {\r\n\t\t\t\talert(e.source.customProperty);\r\n\t\t\t}\r\n\t\t},\r\n\t\tchildTemplates:\r\n\t\t[\r\n\t\t\t{\r\n\t\t\t\ttype: 'Ti.UI.Button',\r\n\t\t\t\tbindId: 'bindButton',\r\n\t\t\t\tproperties: {\r\n\t\t\t\t\tleft: 10,\r\n\t\t\t\t\twidth: 100,\r\n\t\t\t\t\theight: 40,\r\n\t\t\t\t\tborderRadius: 20,\r\n\t\t\t\t\tborderWidth: 1,\r\n\t\t\t\t\tborderColor: '#dedede',\r\n\t\t\t\t\tbackgroundColor: 'green'\r\n\t\t\t\t},\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\ttype : 'Ti.UI.Button',\r\n\t\t\t\tbindId : 'bindButton2',\r\n\t\t\t\tproperties : {\r\n\t\t\t\t\tright: 10,\r\n\t\t\t\t\twidth: 100,\r\n\t\t\t\t\theight: 40,\r\n\t\t\t\t\tborderRadius: 20,\r\n\t\t\t\t\tborderWidth: 1,\r\n\t\t\t\t\tborderColor: '#dedede',\r\n\t\t\t\t\tbackgroundColor: 'red'\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n\tlistView = Ti.UI.createListView({templates: {'template': template}}),\r\n\tsection = Ti.UI.createListSection();\r\n\r\nfor(var i = 1; i <= 10; i++){\r\n\titems.push({\r\n\t\ttemplate: 'template',\r\n\t\tbindButton: {\r\n\t\t   title: 'button a ' + i,\r\n\t\t   customProperty: i\r\n\t\t},\r\n\t\tbindButton2: {\r\n\t\t   title: 'button b ' + i,\r\n\t\t   customProperty: i\r\n\t\t},\r\n\t\tproperties: {\r\n\t\t   itemId: i\r\n\t\t}\r\n\t});\r\n}\r\n\r\nsection.setItems(items);\r\nlistView.sections = [section];\r\n\r\nwin.add(listView);\r\nwin.open();\r\n```\r\n\r\n[JIRA Ticket](https://jira.appcelerator.org/browse/TIMOB-24277)"},"comment":{"url":"https://api.github.com/repos/appcelerator/titanium_mobile/issues/comments/280429312","html_url":"https://github.com/appcelerator/titanium_mobile/pull/8730#issuecomment-280429312","issue_url":"https://api.github.com/repos/appcelerator/titanium_mobile/issues/8730","id":280429312,"user":{"login":"fmerzadyan","id":22060147,"avatar_url":"https://avatars.githubusercontent.com/u/22060147?v=3","gravatar_id":"","url":"https://api.github.com/users/fmerzadyan","html_url":"https://github.com/fmerzadyan","followers_url":"https://api.github.com/users/fmerzadyan/followers","following_url":"https://api.github.com/users/fmerzadyan/following{/other_user}","gists_url":"https://api.github.com/users/fmerzadyan/gists{/gist_id}","starred_url":"https://api.github.com/users/fmerzadyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmerzadyan/subscriptions","organizations_url":"https://api.github.com/users/fmerzadyan/orgs","repos_url":"https://api.github.com/users/fmerzadyan/repos","events_url":"https://api.github.com/users/fmerzadyan/events{/privacy}","received_events_url":"https://api.github.com/users/fmerzadyan/received_events","type":"User","site_admin":false},"created_at":"2017-02-16T19:14:57Z","updated_at":"2017-02-16T19:14:57Z","body":"CR and FT PASS"}}
{"actor":{"display_login":"fmerzadyan"}}