Results 1 to 4 of 4

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

Hybrid View

Previous Post Previous Post   Next Post Next Post
    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Ext GWT Premium Member icfantv's Avatar
    Join Date
    Sep 2011
    Location
    Superior, CO
    Posts
    413
    Vote Rating
    21
      0  

    Default 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
    Location
    Minnesota
    Posts
    2,737
    Vote Rating
    93
      0  

    Default

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

  3. #3
    Sencha Premium Member feelinforyou's Avatar
    Join Date
    Dec 2012
    Posts
    100
    Vote Rating
    4
      0  

    Default

    Any update on this bug? Seems not very difficult to fix!

  4. #4
    Sencha User
    Join Date
    Jan 2015
    Posts
    29
    Vote Rating
    1
      0  

    Default

    It has been two years, please fix it!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •