Results 1 to 2 of 2

Thread: [FIXED] [2.0-rc1] Container - setLayout bug

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext GWT Premium Member
    Join Date
    Jun 2009
    Posts
    21
    Vote Rating
    0
      0  

    Default [FIXED] [2.0-rc1] Container - setLayout bug

    Hi,

    In the latest version from the repository, setLayout() in Container.java checks whether the layout passed in isn't null and then if it isn't it calls layout.setContainer with null. This results in a null pointer exception in FormLayout at Line 119 as it tries to call addStyleName() with a null Container.

    Looking at the revisions looks like this was added in r1576.

    Line 555 in Container.java:
    Code:
      protected void setLayout(Layout layout) {
        if (this.layout != null) {
          this.layout.setContainer(null);
        }
        this.layout = layout;
        layoutNeeded = true;
        layout.setContainer(this);
      }

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Vote Rating
    132
      0  

    Default

    The change was needed to fix a couple of other issue. I fixed FormLayout.

    Fixed in SVN.

Posting Permissions

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