问题描述
extjs4动态改变组件位置?这个x、y怎样动态设置(改变)?{xtype:'panel',colspan:16,width:210*2,height:280*2,border:1,style:{borderColor:'#000000',borderStyle:'solid',borderWidth:'1px'},layout:{type:'absolute'},items:[{xtype:'box',id:'browseImage',x:0,y:0,fieldLabel:"预览图片",//labelWidth:70,autoEl:{width:210,height:280,border:true,tag:'img',src:'css/pic/pic/blank.gif',style:'filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale);'},listeners:{'afterrender':function(me){newExt.dd.DD(me,'pic');//me.center();//获得原始尺寸com.barepackage.imageWidth=me.getWidth();com.barepackage.imageHeight=me.getHeight();},render:function(p){p.getEl().swallowEvent(['mousedown','mouseup','click','dblclick']);}//mousedown:function(){this.setStyle('cursor','url(images/closedhand_8_8.cur),default;');}}}]}]}