Results 1 to 5 of 5

Thread: position the title

  1. #1
    Sencha User
    Join Date
    Jun 2010
    Posts
    139
    Vote Rating
    3
      0  

    Default position the title

    Hello

    I'm using a navigationBar which has on the left a searchfield, in the middle the title. However I would like to have this title moved to the right. But whatever I try this title is centered.

    Is there a way to config the position of the title ?

    cheers
    Luca

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Vote Rating
    1272
      0  

    Default

    There isn't a config to do this. This is how the title component is created:

    Code:
                me.titleComponent = me.add({
                    xtype: 'title',
                    hidden: defaults.hidden,
                    centered: true
                });
    As you can see it doesn't get any config. You could probably change it after it has been created.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Jun 2010
    Posts
    139
    Vote Rating
    3
      0  

    Default

    The element which centers the title looks like this

    Code:
    <div id="ext-title-1" class="x-title x-floating" style="z-index: 8 !important; width: 22px !important;  "><div class="x-innerhtml " id="ext-element-45"><img class="ff-logo" src="images/ff-less-logo.png"></div></div>
    As you can see ST adds the style directly to the element (#ext-title-1) with !important, so how can I override this ?

  4. #4
    Sencha User rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,159
    Vote Rating
    7
      0  

    Default

    Unfortunately this is not possible without some serious hacking because of the way animations work in Navigation View. Hopefully we will improve the flexibility to this component in the future, but it is not planned for 2.0.
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

  5. #5
    Sencha User
    Join Date
    Jun 2010
    Posts
    139
    Vote Rating
    3
      0  

    Default

    ok, thnx

Posting Permissions

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