Web Interface For Lite Argus Control modules
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
{ 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('<img data-enlargeable000 ondblclick="fullScreen(\'img-%%%NODEID%%%\');" style="cursor: zoom-in" id="img-%%%NODEID%%%" src="%%%SELURL%%%" width="100%" />'); }, afterrender: function( p ){ var xx = p.getWidth() * %%%HEIGHT%%% / %%%WIDTH%%%; p.setHeight( xx+32 ); } }}
|