{ "id": "85039", "key": "TIMOB-7257", "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": "10100", "description": "This issue won't be actioned.", "name": "Won't Do" }, "resolutiondate": "2020-01-09T19:37:17.000+0000", "created": "2012-01-17T10:42:01.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "parity" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-01-09T19:37:17.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": "Creating a TextField without a \"font\" property sets the font size to something huge.\r\n\r\n{code}\r\nvar textField = Ti.UI.createTextField({\r\n\theight: 50,\r\n\ttop: 40,\r\n\tleft: 20,\r\n\tright: 20\r\n});\r\n{code}\r\n\r\nJust setting the \"font\" property to an empty object will set it to the correct size:\r\n\r\n{code}\r\nvar textField = Ti.UI.createTextField({\r\n\theight: 50,\r\n\ttop: 40,\r\n\tleft: 20,\r\n\tright: 20,\r\n\tfont: {}\r\n});\r\n{code}\r\n\r\nOn iOS and mobile web, if you do not set a font, the default is acceptable.", "attachment": [ { "id": "25098", "filename": "Screen Shot 2012-01-17 at 10.39.58 AM.png", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-01-17T10:42:13.000+0000", "size": 120521, "mimeType": "image/png" }, { "id": "25099", "filename": "Screen Shot 2012-01-17 at 10.41.52 AM.png", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-01-17T10:42:13.000+0000", "size": 120365, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: TextField - Default font behavior is not consistent with other platforms", "creator": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "environment": "SDK: master (1.9.0)\r\nTi Studio: 1.1.0.201201131816\r\nEmulator: Android 2.3.4 (Mac)", "comment": { "comments": [ { "id": "179583", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "First screenshot is WITHOUT the font property and the default font size is huge. The second screenshot is WITH an empty font property and the default font size looks acceptable.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-01-17T10:43:01.000+0000", "updated": "2012-01-17T10:43:01.000+0000" }, { "id": "240354", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The problem exist with release 3.0.2 and master release 3.1.0\n\nTested on:\n\nTitanium Studio, build: 2.1.2.201208301612\nTitanium SDK version: 3.1.0 (01/03/2013)\nTitanium SDK version: 3.0.2 (01/03/2013)\nDevice: Samsung galaxy s duos Android version: 4.0.4", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-01T13:45:12.000+0000", "updated": "2013-03-01T13:45:12.000+0000" }, { "id": "294091", "author": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Is this consider as a bug or a feature ? If we create a TextField without a font property it takes android default font behavior otherwise it takes titanium default font (fontFamily) property that is SANS_SERIF", "updateAuthor": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-02-21T07:22:21.000+0000", "updated": "2014-02-21T07:22:21.000+0000" }, { "id": "453581", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It has been decided that this issue should be closed as “Won’t do.” This issue is out of date with our current supported SDK release (7.5.2.GA as of the date of closure), and out of date with mobile OS versions. \r\n\r\nIf community members feel that the issue is still valid, please create a new ticket. Please reference this closed ticket number, include SDK used, comments, and code that demonstrates/reproduces the issue.", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-01-09T19:37:17.000+0000", "updated": "2020-01-09T19:37:17.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }