You found a bug! We've classified it as EXTGWT-2770 . 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 icfantv's Avatar
    Join Date
    Sep 2011
    Location
    Superior, CO
    Posts
    337
    Vote Rating
    15
    icfantv will become famous soon enough

      0  

    Default CheckBox input element is not aligned vertically to its box label.

    CheckBox input element is not aligned vertically to its box label.


    This was introduced in 3.x as 2.x does not have this issue. A CheckBox's input element is not vertically aligned with it's box label. The label appears to be aligned correctly, the actual checkbox input element is not.

    This can be seen in the demo page here (look at the Music field label value): http://www.sencha.com/examples/#Exam...e:formsexample

    Or via some sample code:
    Code:
    public class CheckBoxTest implements EntryPoint
    {
       @Override
       public void onModuleLoad()
       {
          ContentPanel cp = new ContentPanel();
          cp.setPixelSize(500, 500);
          cp.setHeadingText("CheckBox Label Alignment Teset");
     
          CheckBox cb = new CheckBox();
          cb.setBoxLabel("Test CheckBox");
          TextButton tb = new TextButton("A Button!");
     
          ToolBar bar = new ToolBar();
          bar.add(tb);
          bar.add(new SeparatorToolItem());
          bar.add(cb);
     
          VerticalLayoutContainer vlc = new VerticalLayoutContainer();
          vlc.add(bar, new VerticalLayoutContainer.VerticalLayoutData(1, -1));
     
          CenterLayoutContainer clc = new CenterLayoutContainer();
          HTML html = new HTML("<h1>Some HTML!</h1>");
          clc.setWidget(html);
          vlc.add(clc, new VerticalLayoutContainer.VerticalLayoutData(1, 1));
     
          cp.setWidget(vlc);
          RootPanel.get().add(cp);
       }
    }

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Posts
    1,931
    Vote Rating
    55
    Colin Alworth is a jewel in the rough Colin Alworth is a jewel in the rough Colin Alworth is a jewel in the rough

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.