{ "id": "62901", "key": "TIMOB-2269", "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": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T03:15:14.000+0000", "created": "2011-04-15T03:15:13.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "background", "defect", "image", "ios", "ipad", "window" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-02T19:27:10.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}
HD Ticket:
\nhttp://developer.appcelerator.com/helpdesk/view/52861
This code shows this behavior.
\n// this sets the background color of the master UIView (when\nthere are no windows/tab groups on it)\nTitanium.UI.setBackgroundColor('#000');
\n// create tab group var tabGroup =\nTitanium.UI.createTabGroup();
\n// // create base UI tab and root window // var win1 =\nTitanium.UI.createWindow({
\ntitle:'Tab 1',\nbackgroundColor:'#fff',\nbackgroundImage:'winback.png',\nurl:'marcovid.js'
\n
\n}); var tab1 = Titanium.UI.createTab({
\nicon:'KS_nav_views.png',\ntitle:'Tab 1',\nwindow:win1
\n
\n});
\nvar label1 = Titanium.UI.createLabel({
\ncolor:'#999',\ntext:'I am Window 1',\nfont:{fontSize:20,fontFamily:'Helvetica Neue'},\ntextAlign:'center',\nwidth:'auto'
\n
\n});
\nvar right_btn = Ti.UI.createButton({
\nsystemButton:Titanium.UI.iPhone.SystemButton.REFRESH
\n
\n});
\nvar right_vw = Ti.UI.createView({
\n});
\nright_vw.add(right_btn);
\nwin1.rightNavButton = right_vw;
\n//win1.add(label1);
// // create controls tab and root window // var win2 =\nTitanium.UI.createWindow({
\ntitle:'Tab 2',\nbackgroundColor:'#fff'
\n
\n}); var tab2 = Titanium.UI.createTab({
\nicon:'KS_nav_ui.png',\ntitle:'Tab 2',\nwindow:win2
\n
\n});
\nvar label2 = Titanium.UI.createLabel({
\ncolor:'#999',\ntext:'I am Window 2',\nfont:{fontSize:20,fontFamily:'Helvetica Neue'},\ntextAlign:'center',\nwidth:'auto'
\n
\n});
\nwin2.add(label2);
\n// // add tabs // tabGroup.addTab(tab1);
\ntabGroup.addTab(tab2);
// open tab group tabGroup.open();
Background images stretch by convention; this is correct\nbehavior.