Success! Looks like we've fixed this one. According to our records the fix was applied for a bug in our system in a recent build.
  1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    54
    Vote Rating
    0
    DarekKay is on a distinguished road

      0  

    Default FieldLabel - problems with a line break

    FieldLabel - problems with a line break


    When a FieldLabel label text is too long, it gets a line break. But the field after it is not rendered correctly:

    Code:
    public void onModuleLoad(){
    
            FieldLabel fieldLabel1 = new FieldLabel(new TextField(), "Short1");
            FieldLabel fieldLabel2 = new FieldLabel(new TextField(), "A very long field label string");
            FieldLabel fieldLabel3 = new FieldLabel(new TextField(), "Short2");
            FieldLabel fieldLabel4 = new FieldLabel(new TextField(), "Short3");
    
            VerticalLayoutContainer vlc = new VerticalLayoutContainer();
            vlc.setPixelSize(500, 500);
    
            VerticalLayoutData vld = new VerticalLayoutData(1, -1);
            vlc.add(fieldLabel1, vld);
            vlc.add(fieldLabel2, vld);
            vlc.add(fieldLabel3, vld);
            vlc.add(fieldLabel4, vld);
    
            RootLayoutPanel.get().add(vlc);
    }
    And that's how it looks like:

    fieldLabel.jpg

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,734
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    Thanks for the report, we'll reply back when we have a fix.

  3. #3
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    This is now fixed in SVN. Change will go out in next release.

  4. #4
    Sencha User WesleyMoy's Avatar
    Join Date
    Oct 2009
    Location
    Redwood City, California
    Posts
    402
    Vote Rating
    2
    WesleyMoy is on a distinguished road

      0  

    Default


    This fix should already be bundled in an earlier beta. If you plan to test again, please use the recently released beta 4. Thanks again for your detailed description and screenshot.

    If you continue to notice this problem with this release, please post a reply and I'll continue following up with the team.