PDA

View Full Version : how to horizontal scroll ?



same66
4 Jan 2011, 7:43 AM
Hi,

I'm creating a panel with radio button and the width of my panel is defined, but it's possible to resize this panel and I don't want that. I want to fixe my panel width.

http://img340.imageshack.us/i/menuxk.jpg/

And I want an horizontal scroll when is needed.
But, how to do that ?

PS : my code


this.navigPanel = new Ext.Panel({
id: getCompId(this.screenNum, 'navigPanel1'),
title: getLabel('navigation'),
headerCfg : {
cls:'x-panel-header',
style:'height:12px; text-align: center'
},
split: true,
autoScroll: true,
anchor:'100% 80%',
width: 130,
defaults: {padding: 5}
});

4 Jan 2011, 10:24 AM
your anchor 100% means that it will only get sized to 100% width of the parent container.