1. #1
    Ext JS Premium Member
    Join Date
    Apr 2010
    Location
    Montréal, Canada
    Posts
    221
    Vote Rating
    5
    Christiand is on a distinguished road

      0  

    Default displayfield value alignment

    displayfield value alignment


    Is it possible to align (center) the value inside a Ext.form.field.Display ?

  2. #2
    Sencha User
    Join Date
    May 2011
    Posts
    1
    Vote Rating
    0
    dereverse is on a distinguished road

      0  

    Default


    try to add this to displayfield's config
    Code:
    style:{
            "text-align": 'center',
     }

  3. #3
    Sencha User
    Join Date
    Mar 2011
    Location
    Pavia, Italy
    Posts
    30
    Vote Rating
    0
    Cougar84 is on a distinguished road

      0  

    Default


    style & cls coding doesn't work ... I've the same problem too ...

  4. #4
    Sencha User
    Join Date
    Nov 2011
    Posts
    16
    Vote Rating
    0
    varois is on a distinguished road

      0  

    Default


    Try:

    Code:
    fieldStyle:{
            "text-align": 'center',
     }

Similar Threads

  1. Replies: 1
    Last Post: 6 May 2011, 1:19 PM
  2. Combo displayfield and tpl
    By SabaSarwat in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 26 Oct 2010, 2:17 AM
  3. [CLOSED-599] DisplayField Alignment Problems
    By kerbo in forum Ext 3.x: Bugs
    Replies: 7
    Last Post: 24 Feb 2010, 8:21 AM
  4. Column alignment issue in Grid after header re alignment
    By kalel in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 19 Dec 2007, 4:04 AM

Thread Participants: 3

Tags for this Thread