{ "id": "91411", "key": "TIMOB-9009", "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-02-28T09:55:08.000+0000", "created": "2012-05-06T08:24:35.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "core", "ipass1" ], "versions": [ { "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:42.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" } ], "description": "h2. Problem\r\n\r\nThe UI.Switch.verticalAlign property has no effect, either with the CHECKBOX or TOGGLEBUTTON style.\r\n\r\nh2. Test Case\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\n\r\nvar basicSwitch = Ti.UI.createSwitch({\r\n\tcolor: 'black',\r\n\tstyle: Ti.UI.Android.SWITCH_STYLE_TOGGLEBUTTON,\r\n\ttitleOn:'Notifications Enabled',\r\n\ttitleOff:'Notifications Disabled',\r\n\t// style: Ti.UI.Android.SWITCH_STYLE_CHECKBOX,\r\n\ttitle:'Notifications',\r\n\t// textAlign:Ti.UI.TEXT_ALIGNMENT_CENTER,\r\n\tverticalAlign:Ti.UI.TEXT_ALIGNMENT_TOP,\r\n\tvalue:true,\r\n\twidth: 300, height:220\r\n});\r\nwin.add(basicSwitch);\r\n\r\nbasicSwitch.addEventListener('change',function(e){\r\n\tTi.API.info('Switch value: ' + basicSwitch.value);\r\n});\r\n\r\nwin.open();\r\n\r\n// print initial value\r\nTi.API.info('Switch value: ' + basicSwitch.value);\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: UI.Switch - verticalAlign has no effect", "creator": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "environment": "* Titanium 2.0.1 GA2\r\n* Android APIs 2.2\r\n* v8\r\n", "comment": { "comments": [ { "id": "240133", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "try this code on line:13\r\nverticalAlign:Ti.UI.TEXT_VERTICAL_ALIGNMENT_TOP,\r\n\r\nit works fine.\r\n\r\nIssue does not reproduces 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\nEmulator: Android version: 2.2", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-28T09:55:08.000+0000", "updated": "2013-02-28T09:56:00.000+0000" }, { "id": "413605", "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:42.000+0000", "updated": "2017-03-17T18:47:42.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }