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.
40 lines
1.1 KiB
40 lines
1.1 KiB
{
|
|
id: 'db_node_%%%NODEID%%%',
|
|
layout:'vbox',
|
|
tools: [{
|
|
id:'gear',
|
|
handler: function(){
|
|
}
|
|
}],
|
|
frame: true,
|
|
draggable: false,
|
|
collapsible: false,
|
|
bodyStyle: 'padding: 0px;',
|
|
title: '%%%NODENAME%%%',
|
|
sukaMineWidth: -1,
|
|
items:[{
|
|
id: 'db_node_%%%NODEID%%%_pic',
|
|
border: true,
|
|
width: '100%',
|
|
html: '<div id="img-%%%NODEID%%%" style="display: flex;align-items: center;" ><img id="img-img-%%%NODEID%%%" ondblclick="fullScreen(\'img-%%%NODEID%%%\');" style="cursor: zoom-in" src="%%%SELURL%%%" width="100%" /></div>'
|
|
}],
|
|
listeners:{
|
|
resize: function( p, adjWidth, adjHeight, rawWidth, rawHeight ){
|
|
if( rawWidth!= undefined ){
|
|
if( p.sukaMineWidth != adjWidth ){
|
|
p.sukaMineWidth = adjWidth;
|
|
var XX = p.sukaMineWidth * %%%HEIGHT%%% / %%%WIDTH%%%;
|
|
p.setHeight( XX + 32 );
|
|
var z = Ext.getCmp('db_node_%%%NODEID%%%_pic');
|
|
z.setHeight( XX );
|
|
};
|
|
};
|
|
},
|
|
afterrender: function( p ){
|
|
var xx = p.getWidth() * %%%HEIGHT%%% / %%%WIDTH%%%;
|
|
p.setHeight( xx + 32 );
|
|
var z = Ext.getCmp('db_node_%%%NODEID%%%_pic');
|
|
z.setHeight( xx );
|
|
}
|
|
}
|
|
}
|