PDA

View Full Version : enableTabScroll causing failure!



trops
1 Dec 2007, 9:12 AM
I have the following layout built in an AIR application.

If I add enableTabScroll: true to the TabPanel in the center region below, the application fails. I am not quite sure why, but it does.

Also,

If I add and REMOVE enableTabScroll, it fails as well:



resizeTabs:true,


Here is the full layout below, if anyone sees anything glaring, please let me know, because Im trying all kinds of things, and just not hitting the nail on the head.


viewport = new Ext.Viewport({
layout: 'border',
monitorResize: false,
items: [new Ext.BoxComponent({ // raw
region: 'north',
el: 'north'

}),
{
region: 'center',
titlebar: false,
collapsible: false,
layout: 'fit',
margins: '0 0 5 0',

items: new Ext.TabPanel({
renderTo: 'tabs',
//resizeTabs:true, // turn on tab resizing
//minTabWidth: 115,
//tabWidth:135,
//enableTabScroll: true,
border: false,
activeTab: 'tab_main',
tabPosition: 'bottom',
id: 'tabs',
//defaults: {autoScroll:true},
items: [{
html: '<p>Hello world.</p>',
title: 'Main',
autoScroll: true,
id: 'tab_main'
}]
})
},
{
region: 'east',
title: 'East Side',
collapsible: true,
split: true,
width: 225,
resizeable: true,
minSize: 175,
layout: 'fit',
margins: '0 5 5 0',
items: new Ext.TabPanel({
border: false,
activeTab: 1,
tabPosition: 'bottom',
items: [{
html: '<p>A TabPanel component can be a region.</p>',
title: 'A Tab',
autoScroll: true
}, new Ext.grid.PropertyGrid({
title: 'Property Grid',
closable: true,
source: {
"(name)": "Properties Grid",
"grouping": false,
"autoFitColumns": true,
"productionQuality": false,
"created": new Date(Date.parse('10/15/2006')),
"tested": false,
"version": '.01',
"borderWidth": 1
}
})]
}),
monitorResize: true
}, {
region: 'west',
id: 'west-panel',
//title: 'Main menu',
split: true,
width: 200,
minSize: 175,
// maxSize: 400,
collapsible: true,
margins: '0 0 5 5',
layout: 'accordion',
layoutConfig: {
animate: true
},
items: [{
contentEl: 'west',
title: 'Forms',
border: false,
iconCls: 'mainMenuForms',
margins: '5 5 5 5'
}, {
title: 'Settings',
html: '<p>Some settings in here.</p>',
border: false,
iconCls: 'mainMenuSettings'
},
{
title: 'Feeds',
html: '<p>Some settings in here.</p>',
border: false,
iconCls: 'mainMenuFeeds'
},
{
title: '...and more',
html: '<p>Some settings in here.</p>',
border: false,
iconCls: 'mainMenuSettings'
}]
}]
});

Thanks in advance!

Trops

hendricd
1 Dec 2007, 9:18 AM
tabScrolling is only supported for 'top' tabs.

trops
1 Dec 2007, 9:28 AM
Found out this is a bug in 2.0. TabPosition: 'top' fixes this. Bottom tab position is not yet supported...

Sorry for the inconvenience!

hendricd
1 Dec 2007, 9:39 AM
I have an override lying around for 'bottom' support, but I'm still tweaking the CSS for it. :-?

trops
2 Dec 2007, 6:55 PM
I would love to hear it when you have it ready...also when using top position the styles for the top tabs are seemingly not correct. what I mean is the left piece of the tabs are showing for the "down" state when they should be for the up state...something just seems off...