{ "id": "108973", "key": "TIMOB-12532", "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": [], "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2013-04-09T18:09:31.000+0000", "created": "2013-01-31T21:44:59.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "SupportTeam", "exalture" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2017-03-29T16:31:20.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": "h6.Problem\r\nAndroid checkbox properties do not work correctly. Add a width and height to it, it looked messed up.\r\n\r\nh6.Expected behavior \r\nWhen specify it to be \"15dp\" by \"15dp\" then it should work according to documentation.\r\n\r\n- Either DP units or SIZE behavior does not render it correctly.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n navBarHidden : true,\r\n orientationModes : [Titanium.UI.PORTRAIT],\r\n title: \"Main Window\",\r\n backgroundColor:\"#fff\",\r\n});\r\n\r\nvar checkBox = Titanium.UI.createSwitch({ style : Titanium.UI.Android.SWITCH_STYLE_CHECKBOX, value : false, width:'25dp', height:'25dp', });\r\nwin.add(checkBox);\r\n{code}\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar switchx = Ti.UI.createSwitch({\r\n style: Titanium.UI.Android.SWITCH_STYLE_CHECKBOX,\r\n value: false,\r\n width: Ti.UI.SIZE, height: Ti.UI.SIZE // size themselves to their content by default\r\n});\r\nwin.add(switchx);\r\nwin.open();\r\n{code}\r\n\r\nh6.Tested on\r\n2.3 OS at emulator wvga800\r\n2.3 razr device", "attachment": [], "flagged": false, "summary": "Android: SWITCH_STYLE_CHECKBOX does not sizing correctly", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium 3.0.0.GA & 3.1 CI\r\nAndroid 2+", "comment": { "comments": [ { "id": "241130", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The problem reproduces with release 3.0.2 and master release 3.1.0\n\ntested on\n\nTitanium Studio, build: 3.0.2.201302191606\nTitanium SDK version: 3.1.0 \nTitanium SDK version: 3.0.2 \nDevice: Samsung galaxy s duos Android version: 4.0.4\nAndroid Emulator: Android SDK version: 2.2", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-07T13:06:41.000+0000", "updated": "2013-03-07T13:06:41.000+0000" }, { "id": "246677", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Width and height change the size of the control but doesn't change size of the box inside the control this results in having wider margin around the box.\r\nThe actual box is controlled by the theme.", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-04-09T18:09:31.000+0000", "updated": "2013-04-09T18:09:31.000+0000" }, { "id": "416176", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as \"Not Our Bug\".", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-29T16:31:20.000+0000", "updated": "2017-03-29T16:31:20.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }