Hybrid View

  1. #1
    Sencha Premium Member
    Join Date
    Mar 2007
    Posts
    170
    Vote Rating
    1
    mike1993 is on a distinguished road

      0  

    Question Window title text alignment

    Window title text alignment


    I've created a window object and want to have it's title to be left justified.
    The problem is that page has "text-align: center" set in css used.

    I tried adding
    Code:
    bodyStyle:'text-align: left;',
    to the window's config but no luck.

    Any suggestions?
    Thanks,
    mike

  2. #2
    Ext User
    Join Date
    Jul 2007
    Posts
    3,128
    Vote Rating
    1
    devnull is an unknown quantity at this point

      0  

    Default


    change your center rule to be specific to where it is needed so that you arent overriding all sorts of other areas.

  3. #3
    Sencha Premium Member
    Join Date
    Mar 2007
    Posts
    170
    Vote Rating
    1
    mike1993 is on a distinguished road

      0  

    Default


    That's the problem. The rule comes from yui/build/reset-fonts-grids/reset-fonts-grids.css and i do not have a control about using that file or not.

  4. #4
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    5
    mjlecomte will become famous soon enough mjlecomte will become famous soon enough

      0  

    Default


    Quote Originally Posted by mike1993 View Post
    That's the problem. The rule comes from yui/build/reset-fonts-grids/reset-fonts-grids.css and i do not have a control about using that file or not.
    I don't understand your problem? Include a css file after the core files to put any overrides you need?

  5. #5
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,496
    Vote Rating
    44
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    But the title of any Panel is left justified anyway, so what is the OP on about?

  6. #6
    Sencha Premium Member
    Join Date
    Mar 2007
    Posts
    170
    Vote Rating
    1
    mike1993 is on a distinguished road

      0  

    Default


    Of course I can do this (add overriding rule) and it would affect the whole page.
    I was just looking for "localized" config setting that would be applicable to my window widget only.


    Animal, that YUI's reset-fonts-grid.css (specifically grid part) sets body's text-align to 'center' and Ext.Panel does not defines text alignment explicitly. Hence... undesired alignment in my case.

    I guess, new rule for the doc is the only way to go..

  7. #7
    Sencha User
    Join Date
    Jul 2012
    Posts
    235
    Vote Rating
    0
    chandan.behura is on a distinguished road

      0  

    Default


    how to make the title to center and the 'X' symbol of a window to left?