PDA

View Full Version : Pie chart : autoHeight don't work



yegortitov
13 Aug 2009, 4:56 AM
hi,

i try to define autoHeight: true in my panel like this :



new Ext.Panel({
width: '100%',
autoHeight: true,
title: 'My title.',
renderTo: 'content',
items: {
store: store,
xtype: 'piechart',
dataField: 'total',
categoryField: 'libelle',
//extra styles get applied to the chart defaults
extraStyle:
{
legend:
{
display: 'left',
padding: 5,
font:
{
family: 'Tahoma',
size: 13
}
}
}
}
});
But it doesn't work. See attachment.
If i force height it works fine.

thanks for your help.