{ "id": "92912", "key": "TIMOB-9430", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13400", "description": "Sprint 2012-12 Mobile Web", "name": "Sprint 2012-12 MW", "archived": true, "released": true, "releaseDate": "2012-06-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-06-14T13:51:34.000+0000", "created": "2012-06-06T16:34:19.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "parity" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-06-26T14:00:08.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": "h4. Problem Description\r\nWhen you are specifying the left or right of a button, you can use fractional percentages in iOS or Android. On MobileWeb, it fails. \r\n\r\nh4. Actual Results\r\nThe buttons are broken if using fractional percentages. Should work as in iOS.\r\n\r\nh4. Expected Results\r\nWorking as nice as in iOS.\r\n\r\nh4. Test Case\r\n1. Create mobile project.\r\n2. Paste app.js:\r\n{code}\r\nvar win1 = Titanium.UI.createWindow({backgroundColor:'#FFFFFF'});\r\n\r\n\r\nvar mView = Ti.UI.createView({\r\n\t\t\ttop:20,\r\n\t\t\theight:90,\r\n\t\t\tbackgroundColor:'#000'\r\n\t\t});\r\n\r\nvar bar1 = Ti.UI.createButton({\r\n\t\t\theight : 41,\r\n\t\t\tleft : '5%',\r\n\t\t\tright : '52.5%',//'52.5%'\r\n\t\t\ttitle : 'Reset',\r\n\t\t\tvisible : true,\r\n\t\t\tbackgroundImage : '/KS_nav_ui.png',\r\n\t\t\tfont : {\r\n\t\t\t\tfontSize : 16,\r\n\t\t\t\tfontWeight : 'bold',\r\n\t\t\t\tfontFamily : 'Helvetica Neue',\r\n\t\t\t\tfontColor:'black',\r\n\t\t\t},\r\n\t\t\tcolor : '#FFFFFF'\r\n\t\t});\r\nvar bar2 = Ti.UI.createButton({\r\n\t\t\theight : 41,\r\n\t\t\tleft : '52.5%',//'52.5%'\r\n\t\t\tright : '5%',\r\n\t\t\ttitle : 'continue',\r\n\t\t\tvisible : true,\r\n\t\t\tbackgroundImage : '/KS_nav_ui.png',\r\n\t\t\tfont : {\r\n\t\t\t\tfontSize : 16,\r\n\t\t\t\tfontWeight : 'bold',\r\n\t\t\t\tfontFamily : 'Helvetica Neue'\r\n\t\t\t},\r\n\t\t\tcolor : '#FFFFFF'\r\n\t\t});\r\n\t\t\r\nmView.add(bar1);\r\nmView.add(bar2);\r\nwin1.add(mView)\r\nwin1.open();\r\n{code}\r\n3. Run it in ios.\r\n4. Run it in mobile web\r\n\r\n", "attachment": [ { "id": "28205", "filename": "Screen Shot 2012-06-06 at 4.32.23 PM.png", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-06-06T16:34:19.000+0000", "size": 21684, "mimeType": "image/png" }, { "id": "28206", "filename": "Screen Shot 2012-06-06 at 4.33.30 PM.png", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-06-06T16:34:19.000+0000", "size": 18695, "mimeType": "image/png" } ], "flagged": false, "summary": "MobileWeb: Fractional percentage in layout not working in MobileWeb", "creator": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "environment": "Titanium SDK version: 2.1.0.v20120606105255.9f0f0ba\r\nPlatform & version: Mobile Web, Chrome, Mac OSX \r\nDevice Details: Mobile Web, Chrome, Mac OSX \r\nHost Operating System: OSX 10.7.3 \r\nTitanium Studio version: 2.0.2", "comment": { "comments": [ { "id": "198297", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull Request: https://github.com/appcelerator/titanium_mobile/pull/2380", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-12T22:03:55.000+0000", "updated": "2012-06-12T22:03:55.000+0000" }, { "id": "200389", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the issue on the environment below & found that the buttons are appearing as expected in IOS.\r\n\r\nTitanium Studio : 2.1.0.201206251749\r\nSDK version : 2.1.0.v20120626104306\r\nChrome : 19.0.1084.56", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-06-26T14:00:08.000+0000", "updated": "2012-06-26T14:00:08.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }