Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8613] iOS: window title bar doesn't show

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-07-09T04:11:30.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sRelease 2.0.2, Release 2.1.0, Sprint 2012-09 API
ComponentsiOS
LabelsSupportTeam, api, module_window, qe-testadded
ReporterNikhil Sharma
AssigneeVishal Duggal
Created2012-04-09T09:56:44.000+0000
Updated2012-07-20T14:11:56.000+0000

Description

The window title bar doesn't show.

Repro Steps

1. Run the below code in the app.js 2. You can see window without the title. [code] var tabGrp = Ti.UI.createTabGroup({}); var tab = Ti.UI.createTab({}); var win1 = Titanium.UI.createWindow({ backgroundColor:'#fff' }); var btn = Ti.UI.createButton({ title:'Click Me' }) btn.addEventListener('click',function(e){ var titleView = Ti.UI.createView({ }) var Lable = Ti.UI.createLabel({ text:'TEST', top:10 }) //This will not work //titleView.add(Lable); //win1.titleControl = titleView; //This will work win1.titleControl = Lable; }) win1.add(btn); tab.window = win1; tabGrp.addTab(tab); tabGrp.open(); [code]

Attachments

FileDateSize
Screen shot 2012-04-24 at 5.16.40 PM.png2012-04-25T10:17:33.000+0000123317
Screen shot 2012-04-24 at 5.16.47 PM.png2012-04-25T10:17:33.000+0000121271

Comments

  1. Vishal Duggal 2012-04-09

    Pull pending https://github.com/appcelerator/titanium_mobile/pull/1968
  2. Mauro Parra-Miranda 2012-04-25

    This is still happening: When you change the orientation, the abbreviated title still appears reduced, even if there is enough space to be displayed. Best, Mauro
  3. Vishal Duggal 2012-04-30

    Test Code
       var tabGrp = Ti.UI.createTabGroup({});
       var tab = Ti.UI.createTab({});
       
       var win1 = Titanium.UI.createWindow({ 
       	backgroundColor:'#fff',
       	orientationModes:[Ti.UI.PORTRAIT,Ti.UI.LANDSCAPE_LEFT,Ti.UI.LANDSCAPE_RIGHT]
       });
       
       var btn = Ti.UI.createButton({ title:'Click Me' })
       
       btn.addEventListener('click',function(e){
       
       	var titleView = Ti.UI.createView({})
       	var Lable = Ti.UI.createLabel({ text:'LONG TEXT WILL NOT FIT IN PORTRAIT', top:10 })
       	//Method 1
       	titleView.add(Lable);
       	win1.titleControl = titleView;
       	//Method2
       	//win1.titleControl = Lable;
       })
       
       
       win1.add(btn);
       
       tab.window = win1;
       
       tabGrp.addTab(tab);
       tabGrp.open();
       
  4. Vishal Duggal 2012-04-30

    Pull pending https://github.com/appcelerator/titanium_mobile/pull/2107
  5. Natalie Huynh 2012-05-10

    Tested with 2.0.2.v20120505151714 on iPhone 4 5.0.1
  6. Anshu Mittal 2012-07-09

    Reopening to update labels

JSON Source