{ "id": "131418", "key": "TIMOB-17090", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-06-26T18:45:11.000+0000", "created": "2014-06-09T11:18:42.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "qe-3.3.0" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2018-04-04T23:20:39.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": "height values is displayed as \"auto\" when button, styles properties set as height: Ti.UI.SIZE.\r\n\r\nSteps to reproduce:\r\nindex.js:\r\n{code}\r\n$.index.open();\r\n\r\nvar style = require('alloy/styles/index');\r\nvar i, len;\t\r\nfor (i = 0, len = $.index.children.length; i < len; i++) {\r\n\tvar child = $.index.children[i];\r\n\tchild.addEventListener('click', function(e) {\r\n\t\tvar id = e.source.id;\r\n\t\t_.each(style, function(o) {\r\n\t\t\tif (o.key === id && o.isId) {\r\n\t\t\t\t// print each style that applies by ID to the source\r\n\t\t\t\talert(JSON.stringify(o));\r\n\t\t\t}\r\n\t\t});\r\n\t});\r\n}\r\n{code}\r\n\r\nindex.xml:\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\nindex.tss:\r\n{code}\r\n\"#index\": {\r\n\tlayout: 'vertical'\r\n}\r\n\"#button1\": {\r\n\theight: '70dp',\r\n\twidth: '250dp',\r\n\tborderRadius: 8,\r\n\tborderWidth: 2,\r\n\tborderColor: '#500'\r\n}\r\n\r\n\"#button2\": {\r\n\twidth: '100dp',\r\n\theight: Ti.UI.SIZE\r\n}\r\n\r\n\"#button3\": {\r\n\theight: '40dp',\r\n\twidth: '200dp',\r\n\tborderRadius: 32,\r\n\tborderWidth: 1,\r\n\tborderColor: '#0f0'\r\n}\r\n{code}\r\n1. Run the sample test code \r\n2. Click on the button2.\r\n\r\nExpected Result:\r\n1. alert must pop up with height value as \"SIZE\"\r\n\r\nActual Result:\r\n1. alert must pop up with height value as \"auto\"\r\n\r\nNote:\r\nThis is not a regression. Occurs with alloy@1.3.1 also\r\nWorking fine for normal iOS and Android project.", "attachment": [], "flagged": false, "summary": "MobileWeb: height values is displayed as \"auto\" when button, styles property set as height: Ti.UI.SIZE", "creator": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appc-Studio:3.3.0.201405271647\r\nsdk:3.3.0.v20140606154912\r\nacs:1.0.14\r\nalloy:1.4.0-beta2\r\nnpm:1.3.2\r\ntitanium:3.3.0-beta2\r\ntitanium-code-processor:1.1.1\r\nxcode:5.1.1\r\nOS:Maverick(10.9.3)\r\nDevice:iPad Air(v7.1.1)\r\nMobile Browser: Safari", "comment": { "comments": [ { "id": "422786", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Marking ticket as \"Won't Fix\" as MobileWeb has been deprecated.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-26T18:45:11.000+0000", "updated": "2017-06-26T18:45:11.000+0000" }, { "id": "436460", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as will not fix.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-04T23:20:39.000+0000", "updated": "2018-04-04T23:20:39.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }