1. #1
    Ext User
    Join Date
    Oct 2007
    Posts
    4
    Vote Rating
    0
    treffer is on a distinguished road

      0  

    Default [2.0a1][CLOSED] CookieProvider breaks complex layout

    [2.0a1][CLOSED] CookieProvider breaks complex layout


    When using CookieProvider, the following code breaks with
    Code:
    m has no properties, ext-all-debug.js (line 14303)
    Test file:
    Code:
    <html>
    <head>
    
    	<title>BorderLayout/Accordion</title>
    	<link rel="stylesheet" type="text/css" href="res/ext/css/ext-all.css" />
    	<script type="text/javascript" src="res/js/ext-base.js"></script>
    	<script type="text/javascript" src="res/js/ext-all-debug.js"></script>
    	<script type="text/javascript">
    Ext.onReady(function(){
    
    Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
    
    new Ext.Viewport({
    	layout:'border',
    	items: [
    		{
    			region: 'north',
    			height: 32
    		},{
    			region: 'west',
    			width: 300,
    			layout: 'accordion',
    			layoutConfig: {
    				animate: true
    			},
    			items: [
    				{
    					title: 'Pain1'
    				},
    				{
    					title: 'Pain2'
    				}
    			]
    		},
    		{
    			region:'center'
    		}
    	]
    });
    
    });
    	</script>
    
    </head>
    
    <body>
    </body>
    
    </html>
    Firebug says that getMargin() returned "undefined", and the getSize() result looks weird, but I've no idea why or how this is related to the CookieProvider. Looks like a bug as it works with
    Code:
    //Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
    Screenshot from Firebug


    [EDIT]Removed some flaws in the test case[/EDIT]
    Last edited by treffer; 4 Oct 2007 at 5:55 AM. Reason: Flaws in the test-case

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    6,956
    Vote Rating
    18
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    region:'center' has an extra comma.

    However, try removing the XHTML/XML stuff from the top as see if it works. It sounds like it could be related to another issue already fixed in SVN.
    Jack Slocum
    Sencha Co-Founder, Ext JS Founder
    Original author of Ext JS 1, 2 & 3.
    Twitter: @jackslocum

  3. #3
    Ext User
    Join Date
    Oct 2007
    Posts
    4
    Vote Rating
    0
    treffer is on a distinguished road

      0  

    Default


    the extra ',' as well as the XML stuff does not change anything at all, I changed the demo and it still breaks, hopefully this is fixed in the next alpha/svn. Sorry for the flaws in the test case.

    One more thing: The problem only exists without a webserver. I just tried it via http:// and it worked. (uploaded @ http://home.in.tum.de/~treffer/exttest.html)

  4. #4
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    6,956
    Vote Rating
    18
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    That is the problem. You can't use cookies without a webserver.
    Jack Slocum
    Sencha Co-Founder, Ext JS Founder
    Original author of Ext JS 1, 2 & 3.
    Twitter: @jackslocum

Thread Participants: 1