Hybrid View

    You found a bug! We've classified it as EXTGWT-2112 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Ext GWT Premium Member
    Join Date
    Jan 2009
    Location
    Colorado Springs, CO
    Posts
    363
    Vote Rating
    5
    DavidHoffer is on a distinguished road

      0  

    Question How to control width of label in FieldLabel?

    How to control width of label in FieldLabel?


    In using GXT 3.x how can I control the width of the label when using a FieldLabel? I.e. when using the following code it gives the label way too much room.

    Code:
    VerticalLayoutContainer v= new VerticalLayoutContainer();
     TextField a = new TextField();
      a.setAllowBlank(true);
      a.setReadOnly(true);
      final FieldLabel aLabel = new FieldLabel(a, "A");
      v.add(aLabel , new VerticalLayoutContainer.VerticalLayoutData(1, -1));
    I've tried to set the width via...and it doesn't make any difference.

    Code:
    aLabel.setLabelPad(0);
    aLabel.setLabelWidth(25);
    aLabel.setPixelSize(25, -1);
    Seems like aLabel.setLabelWidth(25) should work...is this a bug in 3.x?

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Yes this is a known bug and is already tracked by us.

  3. #3
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    http://www.sencha.com/forum/showthre...mpanel-widgets

    First found thread with using the forum search

  4. #4
    Ext GWT Premium Member
    Join Date
    Jan 2009
    Location
    Colorado Springs, CO
    Posts
    363
    Vote Rating
    5
    DavidHoffer is on a distinguished road

      0  

    Default


    Thanks. Do you happen to have a public bug tracking system (e.g. JIRA) where I can watch this issue and get notified of progress?

  5. #5
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    We are updating the forum post if the issue got fixed.

  6. #6
    Ext GWT Premium Member
    Join Date
    Dec 2010
    Location
    New York, NY
    Posts
    116
    Vote Rating
    0
    amit.vankadia is on a distinguished road

      0  

    Default


    is this fixed? I am still seeing this issue.

Thread Participants: 2