{
"id": "174082",
"key": "ALOY-1703",
"fields": {
"issuetype": {
"id": "1",
"description": "A problem which impairs or prevents the functions of the product.",
"name": "Bug",
"subtask": false
},
"project": {
"id": "11113",
"key": "ALOY",
"name": "Alloy",
"projectCategory": {
"id": "10400",
"description": "Tools for developing applications",
"name": "Tooling"
}
},
"fixVersions": [],
"resolution": {
"id": "2",
"description": "The problem described is an issue which will never be fixed.",
"name": "Won't Fix"
},
"resolutiondate": "2019-09-04T20:42:45.000+0000",
"created": "2019-08-30T15:55:56.000+0000",
"priority": {
"name": "None",
"id": "6"
},
"labels": [],
"versions": [],
"issuelinks": [],
"assignee": {
"name": "eharris",
"key": "eharris",
"displayName": "Ewan Harris",
"active": true,
"timeZone": "Europe/Dublin"
},
"updated": "2020-01-24T15:10:06.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": [],
"description": "When using shortcuts for verticalAlign: i.e. \"center\" for \"Titanium.UI.TEXT_VERTICAL_ALIGNMENT_CENTER\", the text is instead top aligned.\r\n\r\nThis does not work:\r\n\r\n\r\n{code:xml}\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\n\r\n\r\nWhereas this does work:\r\n\r\n{code:xml}\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n{code}",
"attachment": [
{
"id": "66905",
"filename": "Screenshot_1567180243.png",
"author": {
"name": "bhouse",
"key": "bhouse",
"displayName": "Brenton House",
"active": true,
"timeZone": "America/Chicago"
},
"created": "2019-08-30T15:54:55.000+0000",
"size": 112921,
"mimeType": "image/png"
},
{
"id": "66904",
"filename": "Screenshot_1567180456.png",
"author": {
"name": "bhouse",
"key": "bhouse",
"displayName": "Brenton House",
"active": true,
"timeZone": "America/Chicago"
},
"created": "2019-08-30T15:54:55.000+0000",
"size": 113205,
"mimeType": "image/png"
}
],
"flagged": false,
"summary": "XML attribute shortcuts for verticalAlign are not used on Android",
"creator": {
"name": "bhouse",
"key": "bhouse",
"displayName": "Brenton House",
"active": true,
"timeZone": "America/Chicago"
},
"subtasks": [],
"reporter": {
"name": "bhouse",
"key": "bhouse",
"displayName": "Brenton House",
"active": true,
"timeZone": "America/Chicago"
},
"environment": "Android",
"comment": {
"comments": [
{
"id": "450997",
"author": {
"name": "jquick",
"key": "jquick",
"displayName": "Joshua Quick",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Android's {{Ti.UI.TEXT_VERTICAL_ALIGNMENT_CENTER}} constant is set to {{\"middle\"}}, not {{\"center\"}}.\r\n[UIModule.java#L248|https://github.com/appcelerator/titanium_mobile/blob/1a8f487da199055828b11e0537923c1bac3a344d/android/modules/ui/src/java/ti/modules/titanium/ui/UIModule.java#L248]\r\n\r\nAnd on Windows, this constant is set to {{\"TEXT_VERTICAL_ALIGNMENT_CENTER\"}}.\r\n[Constants.cpp#L1134|https://github.com/appcelerator/titanium_mobile_windows/blob/5c59f2f5bc6778d8302ecd971b92778ca1715dfd/Source/TitaniumKit/src/UI/Constants.cpp#L1134]\r\n\r\nI don't think you should be making assumptions about what the constant value is assigned to.\r\n",
"updateAuthor": {
"name": "jquick",
"key": "jquick",
"displayName": "Joshua Quick",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2019-08-30T17:36:11.000+0000",
"updated": "2019-08-30T17:36:11.000+0000"
},
{
"id": "451002",
"author": {
"name": "bhouse",
"key": "bhouse",
"displayName": "Brenton House",
"active": true,
"timeZone": "America/Chicago"
},
"body": "ah! ok. I was just assuming that since I could use \"center\" instead of Ti.UI.TEXT_ALIGNMENT_CENTER in XML View I would be able to use \"center\" instead of Ti.UI.TEXT_VERTICAL_ALIGNMENT_CENTER as well. \r\n\r\nI will just alias it in Alloy so that either one will work.\r\n\r\nThanks!",
"updateAuthor": {
"name": "bhouse",
"key": "bhouse",
"displayName": "Brenton House",
"active": true,
"timeZone": "America/Chicago"
},
"created": "2019-08-30T19:07:16.000+0000",
"updated": "2019-08-30T19:07:16.000+0000"
},
{
"id": "451006",
"author": {
"name": "jquick",
"key": "jquick",
"displayName": "Joshua Quick",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Ideally (and to be fair), string constants that Titanium defines should match between platforms.\r\n\r\nHowever, some constants map directly to their native equivalents on Android and iOS. Those constants will never be the same between platforms. Especially the numeric ones.\r\n\r\nI guess the real issue here is that it's inconvenient to write out such long constant names repeatedly.",
"updateAuthor": {
"name": "jquick",
"key": "jquick",
"displayName": "Joshua Quick",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2019-08-30T20:56:38.000+0000",
"updated": "2019-08-30T20:56:38.000+0000"
},
{
"id": "451099",
"author": {
"name": "eharris",
"key": "eharris",
"displayName": "Ewan Harris",
"active": true,
"timeZone": "Europe/Dublin"
},
"body": "Based off Josh's comment I'm going to close this as it's down to the SDK. I don't think we should accept a PR to alias {{\"center\"}} to {{Ti.UI.TEXT_ALIGNMENT_CENTER}} in Alloy as it would change the meaning of values defined in the SDK which (imo) we should not be doing.",
"updateAuthor": {
"name": "eharris",
"key": "eharris",
"displayName": "Ewan Harris",
"active": true,
"timeZone": "Europe/Dublin"
},
"created": "2019-09-04T20:42:39.000+0000",
"updated": "2019-09-04T20:42:39.000+0000"
},
{
"id": "451100",
"author": {
"name": "bhouse",
"key": "bhouse",
"displayName": "Brenton House",
"active": true,
"timeZone": "America/Chicago"
},
"body": "I understand but if anyone is curious, you can see how I implemented it here. Works great as I can now use \"center\" in my xml! https://github.com/brentonhouse/titanium-turbo/pull/51/files#diff-4a4e7dbd8f9f9fd70e648e82873bd3fd",
"updateAuthor": {
"name": "bhouse",
"key": "bhouse",
"displayName": "Brenton House",
"active": true,
"timeZone": "America/Chicago"
},
"created": "2019-09-04T20:49:06.000+0000",
"updated": "2019-09-04T20:49:06.000+0000"
},
{
"id": "453803",
"author": {
"name": "bhouse",
"key": "bhouse",
"displayName": "Brenton House",
"active": true,
"timeZone": "America/Chicago"
},
"body": "I've created a PR for Alloy here: https://github.com/appcelerator/alloy/pull/953",
"updateAuthor": {
"name": "bhouse",
"key": "bhouse",
"displayName": "Brenton House",
"active": true,
"timeZone": "America/Chicago"
},
"created": "2020-01-24T15:10:06.000+0000",
"updated": "2020-01-24T15:10:06.000+0000"
}
],
"maxResults": 6,
"total": 6,
"startAt": 0
}
}
}