Results 1 to 5 of 5

Thread: [CLOSED] Button drawn out of its form panel

  1. #1
    Ext User
    Join Date
    Apr 2008
    Posts
    376
    Vote Rating
    0
      0  

    Default [CLOSED] Button drawn out of its form panel

    Env : Win XP, gxt 1.0beta3
    Sometimes, a button add in a form panel is not drawn in the form panel. I noticed the issue on both hosted mode and web mode (IE6, FF2 and FF3).
    Code:
         public void onModuleLoad() {
            final Viewport viewport = new Viewport();
            viewport.setLayout(new CenterLayout());
            final FormPanel formPanel = new FormPanel();
            formPanel.setHeading("My panel");
            formPanel.setWidth(200);
            Button submitButton = new Button("Submit");
            formPanel.addButton(submitButton);
            viewport.add(formPanel);
            RootPanel.get().add(viewport);
        }

  2. #2
    Ext User
    Join Date
    Apr 2008
    Posts
    376
    Vote Rating
    0
      0  

    Default

    By the way, if I add panel.setFrame(true), it is ok with Firefox but the border is incomplete with IE.

  3. #3
    Ext User
    Join Date
    Apr 2008
    Posts
    376
    Vote Rating
    0
      0  

    Default

    With beta4, no more issue with setFrame(true), great! But with setFrame(false), the button is still drawn out of the panel. Look at the screenshots.
    Attached Images Attached Images

  4. #4
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242
    Vote Rating
    2
      0  

    Default

    This is not a bug. When not framing, the button bar is outside the body element. Take a look at http://extjs.com/explorer/#tabpanelform.

  5. #5
    Ext User
    Join Date
    Apr 2008
    Posts
    376
    Vote Rating
    0
      0  

    Default

    Ok. Sorry for the mistake.

Posting Permissions

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