{ "id": "81508", "key": "TIMOB-5745", "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": "12085", "description": "Mobile @ HQ", "name": "Sprint 2011-45", "archived": true, "released": true, "releaseDate": "2011-11-14" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2011-11-09T09:57:46.000+0000", "created": "2011-10-13T08:44:12.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "regression" ], "versions": [ { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:44:00.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": "h3. Problem\r\n\r\nCustomer has two buttons docked at the bottom on a view.When the orientation of the window is changed from landscape to portrait the buttons are shrinking. \r\n\r\nCustomer is using images for these buttons and setting the left and right alignments in %. \r\n\r\nIf you test the application with 1.7.2, it works well, but if you test test the application with 1.8.0.v20110930164213, it does not work well.\r\n \r\nh3. Reproducible steps:\r\n \r\n1.Run the code below.\r\n \r\nh3. Expected behavior\r\n\r\nCustomer wants to have the same behavior of 1.7.2 SDK in 1.8.x CI Build.\r\n\r\nh3. Sample Code:\r\n\r\n{code}\r\nvar win1 = Titanium.UI.createWindow({\r\n\ttitle : 'Tab 1',\r\n\tbackgroundColor : '#fff'\r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor : '#999',\r\n\ttext : 'I am Window 1',\r\n\tfont : {\r\n\t\tfontSize : 20,\r\n\t\tfontFamily : 'Helvetica Neue'\r\n\t},\r\n\ttextAlign : 'center',\r\n\twidth : 'auto'\r\n});\r\n\r\nwin1.add(label1);\r\n\r\nvar containerView = Ti.UI.createView({\r\n\tleft : 0,\r\n\tright : 0,\r\n\theight : 62,\r\n\tbottom : 0,\r\n\tbackgroundColor : '#EEEEEE'\r\n});\r\n\r\nvar Btn1 = Ti.UI.createButton({\r\n\tbackgroundImage : 'KS_nav_ui.png',\r\n\theight : 41,\r\n\tleft : '5%',\r\n\tright : '52.5%',\r\n\ttitle : 'Button1',\r\n\tborderRadius : 4,\r\n\tfont : {\r\n\t\tfontSize : 18,\r\n\t\tfontWeight : 'bold',\r\n\t\tfontFamily : 'Helvetica Neue'\r\n\t},\r\n\tcolor : 'black'\r\n\r\n});\r\n\r\nvar Btn2 = Ti.UI.createButton({\r\n\r\n\theight : 41,\r\n\tleft : '52.5%',\r\n\tright : '5%',\r\n\ttitle : 'Button2',\r\n\tvisible : true,\r\n\tfont : {\r\n\t\tfontSize : 18,\r\n\t\tfontWeight : 'bold',\r\n\t\tfontFamily : 'Helvetica Neue'\r\n\t},\r\n\tbackgroundImage : 'KS_nav_ui.png',\r\n\tcolor : 'black'\r\n\r\n});\r\ncontainerView.add(Btn1);\r\ncontainerView.add(Btn2);\r\nwin1.add(containerView);\r\nwin1.open();\r\n\r\n\r\n{code}\r\n\r\nh3. Helpdesk\r\nAPP-513861 ", "attachment": [ { "id": "23625", "filename": "1.7.2.png", "author": { "name": "framirez", "key": "framirez", "displayName": "Francisco Antonio Duran Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-13T08:44:12.000+0000", "size": 123412, "mimeType": "image/png" }, { "id": "23626", "filename": "1.8.0.v20110930164213.png", "author": { "name": "framirez", "key": "framirez", "displayName": "Francisco Antonio Duran Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-13T08:44:12.000+0000", "size": 121197, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Buttons shrinking on orientation in 1.8.x CI Build", "creator": { "name": "framirez", "key": "framirez", "displayName": "Francisco Antonio Duran Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "framirez", "key": "framirez", "displayName": "Francisco Antonio Duran Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio, build: 1.0.4.201108101535\r\nIpod touch version 4.2.1\r\n4.3 iOS SDK\r\n1.7.2 TISDK.\r\n1.8.0.v20110930164213 Continuous Build.\r\nEmulator\r\n", "comment": { "comments": [ { "id": "178898", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue due to not being able to reproduce\r\n\r\nTested with Ti Studio 1.0.8.201201101928\r\nTi Mob SDK 1.8.0.1\r\nOSX Lion\r\niPhone 4S OS 5.0.1, iPad 2 OS 5.0.1", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-11T11:20:00.000+0000", "updated": "2012-01-11T11:20:00.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }