Results 1 to 2 of 2

Thread: labelWidth only half working

  1. #1
    Ext User Slartibartfast's Avatar
    Join Date
    Apr 2008
    Location
    Melbourne, Australia
    Posts
    12

    Default labelWidth only half working

    (Sorry Guys, this should have been posted in Help, not Bugs)

    Hi All,

    I'm in the process of migrating from Ext 2.2 to Ext 3.0, and have a rendering issue with my forms:

    Setting the labelWidth on a form field in a form panel, (form layout), sets the Field width correctly but keeps the label width to the default 100px. Here is the code

    Code:
                  layout:'form'
                 ,labelWidth: 80
                 ,items:[{
                    fieldLabel:'Score'
                   ,xtype: 'textfield'
                   ,name:'score'
                   ,anchor:'100%'
                   ,labelStyle: 'text-align:right;'
    In Firebug the field width is not set in the element style, Ext 2.2 did set the width. Since it doesn't get set it uses the default .x-form-item label. The only work around I could see is to add width:80px; in the labelStyle I can't seem to find any changes that have been made to labelWidth with any Ext 3.0 release notes.



    Any help would be great.

    Thank
    Brian.
    Last edited by mystix; 17 Aug 2009 at 6:35 PM. Reason: moved to 3.x Help from 3.x Bugs

  2. #2
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    There was a bug in which your labelStyle overrode any set style from settings like labelWidth.

    IIRC, this has been fixed. I don't know if 3.0.1 is available yet, but when/if you can, try that.

Posting Permissions

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