Results 1 to 3 of 3

Thread: dynamic setTitle titlebar

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Mar 2012
    Vote Rating

    Default dynamic setTitle titlebar

    REQUIRED INFORMATIONExt version tested:
    • Sencha Touch 2.0PR1
    Browser versions tested against:
    • Chrome 11 (Windows)
    • Safari (iPhone)
    DOCTYPE tested against:
    • Ext.TitleBar - setTitle() don't cut the title
    • 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:
    • The title was not cut
    Test Case:
        {        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:
    • none
    Possible fix:
    • not provided
    Additional CSS used:
    • only default ext-all.css
    • custom css (include details)
    Operating System:
    • Windows 7

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    Have you tried in a final release like 2.0.1 not a PR release? This is working great for me:

    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');
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:

  3. #3
    Sencha User
    Join Date
    Oct 2012
    Vote Rating

    Default My title bar is not working properly also


    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');

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts