Results 1 to 3 of 3

Thread: Must Change afterRender to beforeRender

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Ext JS Premium Member
    Join Date
    Apr 2011
    Dallas, TX
    Vote Rating

    Default Must Change afterRender to beforeRender

    In the sticky notes, you've asked us to identify code changes required to get layouts to work in 4.1.

    I've got an issue with migrating from 4.0.7 to 4.1b2. The "afterRender" event does not seem to work the same. It severely ruins the layout.

    Here is what 4.0.7 looks like :


    Here is the exact same code with 4.1b2.

    Changing any "afterRender" references to "beforeRender" SORT of fixes the problem. The screen now lays out properly. However, my main toolbar looses all background coloring. See this image:


    You can find a complete working sample of this code on Github @ . NOTE : This code will no longer work with 4.0.7 because of changing "afterRender" to "beforeRender".

    Also note that this layout problem will exist even if you put no supplemental code in the "afterRendor". Simply referencing afterRender causes the layout to fail.

    FYI : Here is the exact file that had to be changed to support 4.1b2 :
    Attached Images Attached Images
    Last edited by Justin Noel; 19 Feb 2012 at 4:43 PM. Reason: Add file information.

Posting Permissions

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