michel.tadross
16 Nov 2012, 6:48 AM
hi,
My title bar renders the long titles correctly only the first time the user opens the screen, but when opened after that it renders wrong and maybe above the Back button.
Here is a snippet of the code.
items: [{ xtype: 'titlebar', docked: 'top',
title: 'Album title', id: "albumsItemTitleBar", items: { text: 'Back' }
}],
var albumsItemTitleBar = Ext.getCmp('albumsItemTitleBar');
albumsItemTitleBar.setTitle(selectedAlbum);
My title bar renders the long titles correctly only the first time the user opens the screen, but when opened after that it renders wrong and maybe above the Back button.
Here is a snippet of the code.
items: [{ xtype: 'titlebar', docked: 'top',
title: 'Album title', id: "albumsItemTitleBar", items: { text: 'Back' }
}],
var albumsItemTitleBar = Ext.getCmp('albumsItemTitleBar');
albumsItemTitleBar.setTitle(selectedAlbum);