Thank you for reporting this bug. We will make it our priority to review this report.
-
Sencha User
dynamic setTitle titlebar
REQUIRED INFORMATIONExt version tested:
Browser versions tested against:
- Chrome 11 (Windows)
- Safari (iPhone)
DOCTYPE tested against:
- Ext.TitleBar - setTitle() don't cut the title
Description:
- When I want to set the title in a title bar dynamically the title is not been cut and the title text goed over the buttons
Steps to reproduce the problem:
- Create a TitleBar insert this titlebar in another view at the painted event for that titlebar and call the setTitle() function.
The result that was expected:
- That when the title is to long the title will be cut
The result that occurs instead:
Test Case:
Code:
{ xtype: 'topBarConversation',
listeners : {
painted: function(){
this.setTitle(MobileLogin._caseTitle); // a long title
}
}
}
HELPFUL INFORMATIONScreenshot or Video:
See this URL for live test case: http://Debugging already done:
Possible fix:
Additional CSS used:
- only default ext-all.css
- custom css (include details)
Operating System:
-
Have you tried in a final release like 2.0.1 not a PR release? This is working great for me:
Code:
new Ext.Container({
fullscreen : true,
items : [
{
xtype : 'titlebar',
docked : 'top',
items : [
{
xtype : 'button',
ui : 'back',
text : 'Back'
},
{
xtype : 'button',
text : 'Reply',
align : 'right'
}
],
listeners : {
painted : function(bar) {
bar.setTitle('Just a long title, nothing big');
}
}
}
]
});
-
Sencha User
My title bar is not working properly also
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);