{ "id": "98010", "key": "TIMOB-10156", "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": "13870", "description": "", "name": "Sprint 2012-16 API", "archived": true, "released": true, "releaseDate": "2012-08-13" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-08-09T15:04:21.000+0000", "created": "2012-07-25T15:27:29.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-port" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "19709", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "88543", "key": "TIMOB-8212", "fields": { "summary": "MobileWeb: Cleanup textbox/field/area architecture", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-08-10T15:09:45.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "On IE if the width of the textField is too low, and the textAlign is set to TEXT_ALIGNMENT_CENTER, the value does not show until the user type something, but if the width is high enough the value is show but with a wrong alignment.\r\n\r\nOn Google Chrome the value is never displayed until the user types something in the field.\r\n\r\nSteps to reproduce:\r\n1 - Create app with this code:\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor:'#ffffff'\r\n});\r\n\r\nvar textField1 = Ti.UI.createTextField({\r\n right : 170,\r\n top : 102,\r\n width : 200,\r\n height : 36,\r\n borderStyle : Ti.UI.INPUT_BORDERSTYLE_LINE,\r\n backgroundColor : 'white',\r\n textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER,\r\n value: 1,\r\n font : { fontSize : 24 }\r\n});\r\n\r\nvar textField2 = Ti.UI.createTextField({\r\n\tright : 170,\r\n top : 190,\r\n width : 50,\r\n height : 36,\r\n borderStyle : Ti.UI.INPUT_BORDERSTYLE_LINE,\r\n backgroundColor : 'white',\r\n textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER,\r\n value: 1,\r\n font : { fontSize : 24 }\r\n});\r\n\r\nmainView.add(textField1);\r\nmainView.add(textField2);\r\n\r\nwin.add(mainView);\r\nwin.open();\r\n{code}\r\n\r\n2 - Preview on the browser\r\n\r\nActual result (images attached):\r\nIE9 does not show the value with the correct alignment and uses an arbitrary size for the textField, the value only appears when the user types something.\r\nChrome does not show the value until the user types something.\r\n\r\nExpected result:\r\nThe textField shows the value with the correct alignment independently of the size of the textField", "attachment": [ { "id": "30059", "filename": "Chrome.png", "author": { "name": "reymundolopez", "key": "reymundolopez", "displayName": "Reymundo López", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-07-25T15:27:29.000+0000", "size": 4004, "mimeType": "image/png" }, { "id": "30057", "filename": "IE9 - TextField.png", "author": { "name": "reymundolopez", "key": "reymundolopez", "displayName": "Reymundo López", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-07-25T15:27:29.000+0000", "size": 4285, "mimeType": "image/png" }, { "id": "30058", "filename": "Safari - TextField.png", "author": { "name": "reymundolopez", "key": "reymundolopez", "displayName": "Reymundo López", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-07-25T15:27:29.000+0000", "size": 4250, "mimeType": "image/png" } ], "flagged": false, "summary": "MobileWeb: IE9/Chrome not showing or incorrectly showing the value of the textfields when text is aligned", "creator": { "name": "reymundolopez", "key": "reymundolopez", "displayName": "Reymundo López", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "reymundolopez", "key": "reymundolopez", "displayName": "Reymundo López", "active": true, "timeZone": "America/Mexico_City" }, "environment": "Titanium SDK 2.2.0.v20120710122120\r\nWindows 7, Internet Explorer 9.0.8112.16421\r\nMac OS X 10.7.4, Google Chrome 20.0.1132.57", "comment": { "comments": [ { "id": "213227", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull Request: https://github.com/appcelerator/titanium_mobile/pull/2692", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-07T14:57:08.000+0000", "updated": "2012-08-07T14:57:08.000+0000" }, { "id": "213886", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fix on:\r\nTitanium studio : 2.1.1.201207271312\r\nSDK version : 2.2.0.v20120810080115\r\nAndroid 4.0.4 - default ,chrome 18.0\r\nIphone 4.3.5 - safari mobile\r\nMountain lion(10.8) - chrome 21.0,safari 6,firefox 14.0.1", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-08-10T15:09:45.000+0000", "updated": "2012-08-10T15:09:45.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }