Results 1 to 8 of 8

Thread: [OPEN-EXTJSIV-1846]IE8 Error in border layout when west panel has 'collapsed:true'

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Dec 2010
    Posts
    27

    Default [OPEN-EXTJSIV-1846]IE8 Error in border layout when west panel has 'collapsed:true'

    I have a Viewport that uses a vbox layout. Nested within that Viewport is a border layout that has north and west Panels. When I try to apply collapsed:true to the west Panel, I get an "Out of stack space" error in IE8. It works fine in Chrome 11 and Firefox 3.6.17; I can't test on IE9. Note that applying collapsed:true to the north Panel does not cause any problems.

    Here's the simplest example I could come up with that reproduces the error:

    Code:
    Ext.onReady(function ()
    {
    	var MainPanel = {
    		flex: 1,
    		layout: 'border',
    		defaults: {
    			header: false
    		},
    		items: [{
    			region: 'north',
    			height: 80,
    			collapsible: true,
    			collapseMode: 'mini',
    			collapsed: true,
    			split: true,
    			html: 'North region'
    		},{
    			region: 'west',
    			width: 200,
    			collapsible: true,
    			collapseMode: 'mini',
    			collapsed: true,
    			split: true,
    			html: 'West region'
    		},{
    			region: 'center',
    			html: 'Center region'
    		}]
    	};
    
    	var TopPanel = {
    		height: 100,
    		html: 'Top panel'
    	};
    
    	var layout = Ext.create('Ext.container.Viewport', {
    		renderTo: Ext.getBody(),
    		layout: {
    			type: 'vbox',
    			align: 'stretch'
    		},
    		items: [TopPanel, MainPanel]
    	});
    });

  2. #2
    Ext JS Premium Member
    Join Date
    Jan 2011
    Posts
    3

    Default Same here...

    Same here...

    I have a border layout with west and center panel. Inside the west panel I have an accordion layout having multiple navigation panels with again border layout having center and south panel.
    When I set on this south panel collapsed: true, then in IE8 the browser panel crashes and tries to reload once. After that it stops reloading and shows an error message. When I remove collapsed: true everything is fine.
    I have no problem in FF.

    Cheers,
    jochen

  3. #3
    Sencha User dongryphon's Avatar
    Join Date
    Jul 2009
    Location
    Kansas
    Posts
    1,748

    Default

    Thanks for the test case! Awesomely helpful. Fix is on its way to repo.
    Don Griffin

    "Use the source, Luke!"

  4. #4
    Ext JS Premium Member
    Join Date
    Apr 2008
    Posts
    394

    Default

    Don, how do we premium members access the repo containing this fix??

  5. #5
    Sencha User dongryphon's Avatar
    Join Date
    Jul 2009
    Location
    Kansas
    Posts
    1,748

    Default

    I was referring to our internal repo, which is synchronized with the external repo at each release. If you need this fix right away, here is the patch to Border.onBeforeRegionCollapse:

    Code:
    // Horrible workaround for https://sencha.jira.com/browse/EXTJSIV-1562
    if (Ext.isIE) {
        var width = placeholder.el.getWidth();
    
        // Now With Finite Recursion! (https://sencha.jira.com/browse/EXTJSIV-1846)
        if (width != placeholder.width) {
            placeholder.setCalculatedSize(width);
        }
    }
    This will be harder to patch in ext-all.js but fairly easy in ext-all-debug.js and Border.js
    Don Griffin

    "Use the source, Luke!"

  6. #6
    Sencha User dongryphon's Avatar
    Join Date
    Jul 2009
    Location
    Kansas
    Posts
    1,748

    Default

    To access the SVN repo you should have received a login URL, username and password. If not, you can get this from the support portal (http://support.sencha.com). To login to the support portal, you will need the credentials you received with your license. Don't hesitate to contact support if you have any problems.
    Don Griffin

    "Use the source, Luke!"

  7. #7
    Ext JS Premium Member
    Join Date
    Apr 2008
    Posts
    394

    Default

    I'm trying to work with support right now to get my proper access to the 4.0 svn repo. I have no problem getting to 3.3.x

    I appreciate you posting the patch.

  8. #8
    Sencha User dongryphon's Avatar
    Join Date
    Jul 2009
    Location
    Kansas
    Posts
    1,748

    Default

    Just a heads up... the above patch is not 100% (seems to fail in IE8/XP). Looking at this now.
    Don Griffin

    "Use the source, Luke!"

  9. #9
    Sencha Premium Member
    Join Date
    Dec 2010
    Posts
    27

    Default

    The fix is working for me on IE8/Win7. I'll stay posted for the XP fix. Thanks for the help, Don!

Similar Threads

  1. Replies: 1
    Last Post: 19 May 2011, 6:32 AM
  2. Replies: 6
    Last Post: 28 Apr 2011, 6:13 AM
  3. Replies: 3
    Last Post: 5 Aug 2008, 9:23 PM
  4. ie 7 display problem in border layout, west panel
    By snehendu in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 10 Mar 2008, 4:53 AM

Posting Permissions

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