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
    325
    Vote Rating
    2
    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,717
    Vote Rating
    107
    sven is just really nice sven is just really nice sven is just really nice sven is just really nice

      0  

    Default


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

  3. #3
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,717
    Vote Rating
    107
    sven is just really nice sven is just really nice sven is just really nice sven is just really nice

      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
    325
    Vote Rating
    2
    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,717
    Vote Rating
    107
    sven is just really nice sven is just really nice sven is just really nice sven is just really nice

      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
    111
    Vote Rating
    0
    amit.vankadia is on a distinguished road

      0  

    Default


    is this fixed? I am still seeing this issue.

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

      0  

    Default


    I believe it was fixed but I don't recall which RC version, which version are you using? You might want to try 3.0.0-rc2...that's the latest available in maven.

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

      0  

    Default


    Actually I am using that version. I will try 3.0 from maven repository