extjs windwow 弹出框问题

greatmind829 2011-05-16 06:39:03


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中的东西全全形了,有那些大哥遇到过这样的问题吗?帮我解决一下,谢谢了,我这样写存在那些问题。请指教。。。
...全文
103 8 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
greatmind829 2011-05-17
  • 打赏
  • 举报
回复
IE 下就老变形,在firefox下面就显示正常。这是为什么了。
greatmind829 2011-05-17
  • 打赏
  • 举报
回复
高手哪去了。。
kui5656 2011-05-17
  • 打赏
  • 举报
回复
在windws里有个属性这样写就可以了:layout : 'fit',
yangxuebao123 2011-05-17
  • 打赏
  • 举报
回复
自己对着API弄啊,一个个的试...
greatmind829 2011-05-17
  • 打赏
  • 举报
回复
真不知道那里错了。公司又没有人。哎。。
yangxuebao123 2011-05-17
  • 打赏
  • 举报
回复
看了你的代码就觉得你少了一个layout 属性,布局渲染的. 我也不知道缺省的时候子面板会变成什么样子..
greatmind829 2011-05-16
  • 打赏
  • 举报
回复
我也是这样想的。这个问题太郁闷了。。
安心逍遥 2011-05-16
  • 打赏
  • 举报
回复
设置好长度宽度了,怎么还每次打开window的长度和宽度都不一样呢。没遇到过

81,122

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧