gizmo410
14 Jun 2012, 12:41 AM
Hi !
I would like to apply padding around a panel dynamically but it does not render correctly.
This is my structure :
{xtype: 'basePanel', cls:'mainPanel', layout:'fit', items:[
{xtype:'panel', layout: 'border', items: [
{xtype:'panel',region:'west', frame: true, width:300, items:[
{xtype:'recordingStatisticsFieldSet'},
{xtype:'surveyStatisticsFieldSet'}
]},
{xtype:'panel', region:'center', frame: true},
{xtype:'activityLogGrid',region:'east', width: 400}
]}
]}
The panel containing the layout border should receive the padding.
So I tried applying a style containing the padding rules by doing this :
var panel = this.getMainPanel().getComponent(0);
panel.getEl().toggleCls('padding50');
But it does not work.
The panel is partly rendered outside the view.
Any idea ?
Thanks in advance !
I would like to apply padding around a panel dynamically but it does not render correctly.
This is my structure :
{xtype: 'basePanel', cls:'mainPanel', layout:'fit', items:[
{xtype:'panel', layout: 'border', items: [
{xtype:'panel',region:'west', frame: true, width:300, items:[
{xtype:'recordingStatisticsFieldSet'},
{xtype:'surveyStatisticsFieldSet'}
]},
{xtype:'panel', region:'center', frame: true},
{xtype:'activityLogGrid',region:'east', width: 400}
]}
]}
The panel containing the layout border should receive the padding.
So I tried applying a style containing the padding rules by doing this :
var panel = this.getMainPanel().getComponent(0);
panel.getEl().toggleCls('padding50');
But it does not work.
The panel is partly rendered outside the view.
Any idea ?
Thanks in advance !