ananthbhaskar
23 Aug 2011, 1:25 AM
Hi,
I need to have a horizontal scroll bar in the panel, which is not working after setting "autoScroll: true".
Can anyone throw some information/ example on the same.
Sample Code:
var Panel1 = new Ext.Panel({ id: Panel1', title: '', height: 200, autoScroll: true, forceFit: false
});
var Panel2 = new Ext.Panel({
id: Panel2', title: '',
layout: 'column', height: 400, scroll: 'horizontal', autoScroll: true, forceFit: false//, width: 1500
, defaults: { layout: 'form', xtype: 'panel', bodyStyle: 'padding:5px', border: false
}, items: [......]
});
var testPanel = new Ext.Panel({
id: 'testPanel'
, region: 'south'
, collapsible: true
, title: 'test'
, collapsed: true
, scroll: 'horizontal'
, animCollapse: false
, height: 350
, width: 350
, autoScroll: true
// , viewConfig: { autoScroll: true, forceFit: false }
, layoutConfig:{ autoWidth:false}
, layout: 'card'
, bodyStyle: 'padding:3px;'
, items: [Panel1, Panel2]
});
Thanks in advance!!
I need to have a horizontal scroll bar in the panel, which is not working after setting "autoScroll: true".
Can anyone throw some information/ example on the same.
Sample Code:
var Panel1 = new Ext.Panel({ id: Panel1', title: '', height: 200, autoScroll: true, forceFit: false
});
var Panel2 = new Ext.Panel({
id: Panel2', title: '',
layout: 'column', height: 400, scroll: 'horizontal', autoScroll: true, forceFit: false//, width: 1500
, defaults: { layout: 'form', xtype: 'panel', bodyStyle: 'padding:5px', border: false
}, items: [......]
});
var testPanel = new Ext.Panel({
id: 'testPanel'
, region: 'south'
, collapsible: true
, title: 'test'
, collapsed: true
, scroll: 'horizontal'
, animCollapse: false
, height: 350
, width: 350
, autoScroll: true
// , viewConfig: { autoScroll: true, forceFit: false }
, layoutConfig:{ autoWidth:false}
, layout: 'card'
, bodyStyle: 'padding:3px;'
, items: [Panel1, Panel2]
});
Thanks in advance!!