81,122
社区成员




uploadChoiceTranscode = Ext.extend(Ext.Window,{
constructor:function (){
uploadChoiceTranscode.superclass.constructor.call(this,{
width:400,
height:300,
modal : true,
title : '选择视频旋转角度',
buttons:[{text:'确实',handler:this.sureTransCode,scope:this},
{text:'取消',handler:this.cancelTanCode,scope:this}],
listeners:{
"beforeclose":function (){
// this.cancelTanCode();
}
}
})
},
sureTransCode:function (){
},
cancelTanCode:function (){
this.close();
}
})
别外一个window 中用一个toorBar,toorBar中有一个按钮调用一个方法
方法中写
var tranCode=new uploadChoiceTranscode();
tranCode.show()
这样每次打开这个Window的长度的宽度都会不一样,这样就导致加到Window中的东西全全形了,有那些大哥遇到过这样的问题吗?帮我解决一下,谢谢了,我这样写存在那些问题。请指教。。。