ext.window()打开时,父窗口自动隐藏下拉框?这是为什么啊?
代码如下:
<script type="text/javascript">
Ext.onReady(function(){
Ext.get("btn").on("click",newWin);
});
var win;
function newWin()
{
var obj=document.getElementById("channel_name");
if(obj.value!="")
{
win.show();
}
if(win)
{
win.show();
}
else{
win= new Ext.Window
({ id:'mywin',
applyTo:'hello-win',
title:'请选择',
layout:'fit',
width:380,
height:420,
closeAction:'hide',
resizable:true,
plain: true,
autoScroll :false,
modal:true,
//shadow:true,
items:
[{
header: false,
html : '<iframe style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; width: "auto"; height: 400px; border-right-width: 0px" frameborder="0" width="100%" scrolling="no" height="100%" src="<%=path%>/chooseChannel.jsp"></iframe>',
border:true
}]
});
win.setVisible(true);
}
}
哪位大侠帮忙看看吧,愁啊,自己实在把自己搞垮了,额外给300分,大侠拔刀相助啊
</script>
代码如下:
<script type="text/javascript">
Ext.onReady(function(){
Ext.get("btn").on("click",newWin);
});
var win;
function newWin()
{
var obj=document.getElementById("channel_name");
if(obj.value!="")
{
win.show();
}
if(win)
{
win.show();
}
else{
win= new Ext.Window
({ id:'mywin',
applyTo:'hello-win',
title:'请选择',
layout:'fit',
width:380,
height:420,
closeAction:'hide',
resizable:true,
plain: true,
autoScroll :false,
modal:true,
//shadow:true,
items:
[{
header: false,
html : '<iframe style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; width: "auto"; height: 400px; border-right-width: 0px" frameborder="0" width="100%" scrolling="no" height="100%" src="<%=path%>/chooseChannel.jsp"></iframe>',
border:true
}]
});
win.setVisible(true);
}
}
哪位大侠帮忙看看吧,愁啊,自己实在把自己搞垮了,额外给300分,大侠拔刀相助啊
</script>
设置成
scrolling="auto"