{ id: 'db_node_%%%NODEID%%%', //xtype: 'portlet', layout:'fit', //width: 258, //height: %%%HEIGHT%%%+40, tools: [{ id:'gear', handler: function(){ //editAnalogStream( %%%STREAMID%%%, 1 ); } }], frame: true, draggable: false, bodyStyle: 'padding: 0px;', title: '%%%NODENAME%%%', items:[{ id: 'db_node_%%%NODEID%%%_pic', html: '', }], sukaMineWidth: -1, listeners:{ resize: function( p, adjWidth, adjHeight, rawWidth, rawHeight ){ if( rawWidth!= undefined ){ if( p.sukaMineWidth != adjWidth ){ p.sukaMineWidth = adjWidth; var XX = 32 + p.sukaMineWidth * %%%HEIGHT%%% / %%%WIDTH%%%; p.setHeight( XX ); }; }; var z = Ext.getCmp('db_node_%%%NODEID%%%_pic'); z.update(''); }, afterrender: function( p ){ var xx = p.getWidth() * %%%HEIGHT%%% / %%%WIDTH%%%; p.setHeight( xx+32 ); } } }