[CLOSED] Label width ignored on NumberField

  1. #1

    [CLOSED] Label width ignored on NumberField

    Hi there,

    When creating a number field like so:

                                            fields.Add(Html.X().NumberField()
                                                .ID("txtQuotedLeadTime")
                                                .FieldLabel("Quoted Lead Time (weeks)")
                                                .LabelAlign(LabelAlign.Top)
                                                .Cls("form-label")
                                                .Width(75)
                                                .LabelWidth(300)
                                                .Margins("0 0 4 4"));
    it seems that the LabelWidth is ignored - instead both label and box wdith are 75. I assume this is a bug unless I'm doing something incorrectly?
    Last edited by Daniil; Aug 28, 2012 at 5:05 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Personally, I would consider it a bug as well. But I'm not sure why it's so.

    I've reported to ExtJS. Lets wait what they will answer.
    http://www.sencha.com/forum/showthread.php?199887
  3. #3
    Obviously I can just get around it by setting a css class up for those labels but still it seems that this is incorrect behaviour
  4. #4
    I agreed.

    ExtJS agreed as well, they have opened a bug.
    http://www.sencha.com/forum/showthread.php?199887
  5. #5
    Hi @machinableed,

    Sencha added the inputWidht config option.
    http://www.sencha.com/forum/showthre...l=1#post878154

    Example
    @(Html.X().NumberField()
        .FieldLabel("Some looooooong FieldLabel")
        .LabelAlign(LabelAlign.Top)
        .InputWidth(75)
    )
    It is available in the 2.1 branch and will be available with the next v2.1 release as well.

    Thanks again for the report!

Similar Threads

  1. How to change size of a label in a NumberField
    By extNewBee in forum 1.x Help
    Replies: 2
    Last Post: May 24, 2012, 12:20 PM
  2. [CLOSED] Label width problem
    By caha76 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 22, 2011, 2:59 PM
  3. label width
    By bilgecooliteforum in forum 1.x Help
    Replies: 1
    Last Post: May 13, 2010, 11:58 AM
  4. Multifield label width
    By Wtower in forum 1.x Help
    Replies: 2
    Last Post: Aug 10, 2009, 1:37 PM

Posting Permissions