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
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    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
    Ext JS Founder
    Original author of Ext JS 1, 2 & 3.
    Twitter: @jackslocum
    jack@extjs.com

  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
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    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
    Ext JS Founder
    Original author of Ext JS 1, 2 & 3.
    Twitter: @jackslocum
    jack@extjs.com

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi