{ "id": "92592", "key": "TIMOB-9333", "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": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-03-11T07:29:40.000+0000", "created": "2012-05-31T01:11:58.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "ipass1" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-17T18:47:35.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": "10202", "name": "Android", "description": "Android Platform" } ], "attachment": [], "flagged": false, "summary": "Android: UI components do not respect positioning properties in \"horizontal\" layout", "creator": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "* Titanium SDK version: 2.1.0 (05/30/12 15:18 d3c9767)\r\n* v8\r\n* Android 3.1\r\n* Thinkpad Tablet\r\n* OSX Lion", "comment": { "comments": [ { "id": "196787", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested on a Samsung Galaxy S2 running 2.3.6, issue reproducible on TiSDK 2.0.1GA2.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-05-31T15:32:44.000+0000", "updated": "2012-05-31T15:32:44.000+0000" }, { "id": "196819", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "This bug is reported and tested for Android (I see that component part is set to iOS).\r\n\r\n\r\nParity issue should be opened for iOS.", "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2012-05-31T23:30:21.000+0000", "updated": "2012-05-31T23:30:50.000+0000" }, { "id": "196821", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "My mistake, accidentally selected iOS instead of Android. I only tested this on an Android device. Updated the ticket to reflect the correct platform.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-06-01T00:15:19.000+0000", "updated": "2012-06-01T00:15:19.000+0000" }, { "id": "196822", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Thanks. :)", "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2012-06-01T00:19:04.000+0000", "updated": "2012-06-01T00:19:04.000+0000" }, { "id": "219231", "author": { "name": "kenwen", "key": "kenwen", "displayName": "Ken Liu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm having a similar problem with vertical layouts - a set of textfields within a view are not respecting the bottom property.\r\n\r\nHowever, when I switch to using the top property to manage spacing between elements it works.\r\n\r\nCode snippet here. Switching to top worked to create a gap between text fields, using bottom didn't\r\n\r\n// Set up base view and UI elements\r\nvar settingsView = Titanium.UI.createView({\r\n\twidth : Ti.UI.FILL,\r\n\theight : Ti.UI.FILL,\r\n\ttop : 0,\r\n\tleft : 0,\r\n\tbackgroundColor : \"#fff\",\r\n});\r\n\r\nvar acctView = Titanium.UI.createView({\r\n\twidth : Ti.UI.FILL,\r\n\theight : Ti.UI.FILL,\r\n\ttop : 10,\r\n\tleft : 10,\r\n\tbottom : 10,\r\n\tright : 10,\r\n\tlayout : \"vertical\",\r\n\tbackgroundColor : \"#ccc\",\r\n\tborderRadius : 5,\r\n});\r\n\r\n// Create userView elements\r\nvar title = Ti.UI.createLabel({\r\n\twidth : Ti.UI.FILL,\r\n\theight : Ti.UI.SIZE,\r\n\ttop : 8,\r\n\tleft : 5,\r\n\tbottom : 8,\r\n\ttext : \"Signup\"\r\n});\r\n\r\nvar titleSeperator = Ti.UI.createLabel({\r\n\twidth : Ti.UI.FILL,\r\n\theight : 2,\r\n\tbackgroundColor : \"#000\",\r\n});\r\n\r\nvar userNameField = Titanium.UI.createTextField({\r\n\twidth : Ti.UI.FILL,\r\n\theight : Ti.UI.SIZE,\r\n\tleft : 10,\r\n\tright : 10,\r\n\ttop : 16,\r\n\tbackgroundColor : \"#FFF\",\r\n\tborderWidth : 1,\r\n\treturnKeyType : Titanium.UI.RETURNKEY_DONE,\r\n\thintText : \"Enter your username\",\r\n\tautocapitalization : Titanium.UI.TEXT_AUTOCAPITALIZATION_NONE,\r\n});\r\n\r\nvar userPassword = Titanium.UI.createTextField({\r\n\theight : Ti.UI.SIZE,\r\n\tleft : 10,\r\n\tright : 10,\r\n\ttop : 16,\r\n\tbackgroundColor : \"#FFF\",\r\n\tborderWidth : 1,\r\n\treturnKeyType : Titanium.UI.RETURNKEY_DONE,\r\n\thintText : \"Enter password\",\r\n\tpasswordMask : true,\r\n});", "updateAuthor": { "name": "kenwen", "key": "kenwen", "displayName": "Ken Liu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-17T04:41:39.000+0000", "updated": "2012-09-17T04:41:39.000+0000" }, { "id": "241533", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "it is not a bug, change the width property of each component, you will get the expected result.\r\n\r\ntry this code:\r\n(function() {\r\n \r\n var win = Ti.UI.createWindow({ backgroundColor: \"#fff\", navBarHidden: true, layout: 'horizontal' });\r\n \r\n var label1 = Ti.UI.createLabel({\r\n top: 150,\r\n left: 50,\r\n text: 'Testing 1 ...',\r\n height: '75dp',\r\n width: '25dp',\r\n backgroundColor: \"#000\"\r\n });\r\n \r\n var textField = Ti.UI.createTextField({\r\n top: 150,\r\n left: 50,\r\n height: '75dp',\r\n width: '25dp',\r\n });\r\n \r\n var label2 = Ti.UI.createLabel({\r\n top: 150,\r\n left: 50,\r\n text: 'Testing 2 ...',\r\n height: '75dp',\r\n width: '25dp',\r\n backgroundColor: \"#000\"\r\n });\r\n \r\n var picker = Ti.UI.createPicker({\r\n top: 150,\r\n left: 50,\r\n height: '75dp',\r\n width: '25dp',\r\n backgroundColor: \"#999\",\r\n selectionIndicator : true\r\n });\r\n \r\n var data = [];\r\n \r\n data[0] = Ti.UI.createPickerRow({ title:'Bananas' });\r\n data[1] = Ti.UI.createPickerRow({ title:'Strawberries' });\r\n data[2] = Ti.UI.createPickerRow({ title:'Mangos' });\r\n data[3] = Ti.UI.createPickerRow({ title:'Grapes' });\r\n \r\n picker.add(data);\r\n \r\n win.add(label1);\r\n win.add(textField);\r\n win.add(label2);\r\n win.add(picker);\r\n \r\n win.open();\r\n \r\n})();\r\n\r\n\r\n\r\nTested with\r\n\r\nTitanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK version: 3.1.0 (03/11/13 15:43 0c88429)\r\nTitanium SDK version: 3.0.2 (02/07/13 16:46 a4def81)\r\nDevice: Samsung galaxy s duos Android version: 4.0.4\r\nAndroid Emulator: Android SDK version: 2.2 ", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-11T07:29:40.000+0000", "updated": "2013-03-11T07:29:40.000+0000" }, { "id": "413604", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-17T18:47:35.000+0000", "updated": "2017-03-17T18:47:35.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }