{ "id": "98630", "key": "TIMOB-10303", "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": "2012-08-09T17:23:49.000+0000", "created": "2012-08-02T17:37:19.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:45:59.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": "h4. Problem Description\r\nAlert dialog buttons getting clipped on specific devices (Samsung Galaxy SII and LG Optimus V)\r\n\r\nh4. Expected Results\r\nBeing able to see the custom alert dialog just fine. \r\n\r\nh4. Actual Results \r\nClipped alert Dialog. \r\n\r\nh4. Repo Steps\r\n1. Create new Mobile Project\r\n2. Add this code to the app.js\r\n{code}\r\nvar w = Ti.UI.createWindow({\r\n\tbackgroundColor: '#ffffff'\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n\twidth: 200,\r\n\theight: 40,\r\n\ttop: 10,\r\n\ttitle: \"Open alert dialog\"\r\n});\r\n\r\nvar button2 = Ti.UI.createButton({\r\n\twidth: 200,\r\n\theight: 40,\r\n\ttop: 60,\r\n\ttitle: \"Open option dialog\"\r\n});\r\n\r\nbutton.addEventListener('click', function(e) {\r\n\tvar alert = Titanium.UI.createAlertDialog({\r\n\t\tcancel : 2,\r\n\t\tbuttonNames : ['Take Photo', 'Choose Existing Photo', 'Cancel'],\r\n\t\theight: Ti.Platform.displayCaps.platformHeight-280\r\n\t});\r\n\talert.show();\r\n});\r\nalert(Titanium.Platform.displayCaps.platformHeight);\r\nbutton2.addEventListener('click', function(e) {\r\n\tvar dialog = Titanium.UI.createOptionDialog({\r\n\t\toptions:['Take Photo', 'Choose Existing Photo', 'Cancel'],\r\n\t\tcancel:2\r\n\t});\r\n\tdialog.show();\r\n});\r\n\r\nw.add(button);\r\nw.add(button2);\r\n\r\nw.open();\r\n{code}\r\n3. Run this code in the Samsung Galaxy S3. \r\n\r\nh4. Extra info\r\n\r\nHere is the pastie link of the code sample http://pastie.org/private/x4rw8an7jv4uefgvfzq26g ", "attachment": [], "flagged": false, "summary": "Android: Alert dialog buttons getting clipped ", "creator": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "android 2.3.6\r\nSamsung Galaxy SII\r\nAndroid 4.0.4\r\nSamsung Galaxy SIII\r\nandroid 2.2.2\r\nLG Optimus V\r\nTi SDK 2.1.0.GA\r\nTi SDK 2.1.1.GA\r\n", "comment": { "comments": [ { "id": "213690", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is a native Android bug. This issue also happens in native Android apps. Mark the ticket as won't fix.\r\nIf we set \"title: 'Some Title'\" when creating the alert dialog, the buttons won't get clipped.\r\n", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-09T16:55:30.000+0000", "updated": "2012-08-09T16:55:30.000+0000" }, { "id": "411111", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing this ticket as it is not our bug.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T23:45:59.000+0000", "updated": "2017-03-09T23:45:59.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }