PDA

View Full Version : IE tbar error



heidtmare
3 Jun 2009, 9:52 AM
Ok, i've broken my apps gui down to the basic example below.
everything is perfect in FF but IE(6,8) throws:


Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.1)
Timestamp: Wed, 3 Jun 2009 17:45:51 UTC

Message: Invalid argument.
Line: 9
Char: 45609
Code: 0
URI: http://localhost:7001/MYAPPSNAME/client/lib/Ext/ext-3.0/ext-all.jsif i comment out the "tbar" IE then behaves correctly.
the content of the tbar doesnt seem to matter,
just having the tbar present causes the error.


new Ext.Viewport({
layout:'border',
items:[{
region: 'north',
xtype: 'panel',
html: 'NORTH'
},{
region: 'center',
xtype: 'tabpanel',
activeTab:0,
items:[{
xtype:'panel',
title:'TAB1',
layout: 'fit',
closable:true,
items:[{
xtype:'panel',
layout: 'border',
tbar:['-'], //<-- if i remove this IE is happy again
items:[{
region: 'north',
xtype: 'panel',
html: 'CENTER - NORTH'
},{
region: 'center',
xtype: 'panel',
html: 'CENTER - CENTER'
}]
}]
}]
}]
});

heidtmare
3 Jun 2009, 10:16 AM
I started movein the tbar around and came up with a working position for IE.
But this is not ideal because the bar isnt visually where i want it.


new Ext.Viewport({
layout:'border',
items:[{
region: 'north',
xtype: 'panel',
html: 'NORTH'
},{
region: 'center',
xtype: 'tabpanel',
activeTab:0,
items:[{
xtype:'panel',
title:'TAB1',
layout: 'fit',
closable:true,
items:[{
xtype:'panel',
layout: 'border',
//tbar:['-'], //<-- FAILURE
items:[{
region: 'north',
xtype: 'panel',
tbar:['-'], //<-- SUCCESS
html: 'CENTER - NORTH'
},{
region: 'center',
xtype: 'panel',
html: 'CENTER - CENTER'
}]
}]
}]
}]
});

Nagiy
4 Jun 2009, 7:56 PM
I am having the same problem :((