{ "id": "60769", "key": "TIMOB-137", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T02:24:11.000+0000", "created": "2011-04-15T02:24:11.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T21:04:27.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}
I have a textfield and i noticed that \"backgroundImage\" is not\nlisted on the api, yet it works for a textfield. The issue i am\nhaving though is that you can give it padding, but the text always\naligns itself vertically along the top of the text field so my text\nlooks all lop sided because i want a bit of padding around the text\nand the border of my text graphic.
\n@@@ button code var email_input =\nTitanium.UI.createTextField({
\n id: 'email_input',\n value: 'email',\n color: '#dddddd',\n backgroundImage: 'images/input_background.png',\n clearOnEdit: true,\n textAlign: 'center'\n});
\n
\n\n\n@@@ html for padding\n<div id=\"email_input\" style=\"height: 30px; width: 237px; padding: 10px 5px 10px; margin: 10px 32px 0px;\"></div>
\n
\ni will attach the graphic as well
\nif it's not a bug then ignore, if there's a way to do it\ncurrently then yay :)
I have worked around it by wrapping an outer div around the\ninput's placeholder and working some css magic to put a background\nimnage on the outer div, then giving the input itself no background\ncolor. It appears to work, but i'm having the images take a tiny\nlag of delay before they show up. looking into ways to pre-load\nthose.
\nI'm not sure if this is the recommended way or if there's a way\nto get it on the input itself thats a little cleaner. I am\ncurrently working around it :)
Mooted by changes in codebase since then.