构造左右两个部分的一个界面,我希望在左边放入一个IFrame,为了使IFrame自适应拖动后窗口的大小,需要截获左右窗口大小调整事件(鼠标拖动当中的边框),我花了半天多时间,查了好多资料,到现在还没有任何头绪。谁能有什么思路,快帮帮忙啊,万分谢谢,万分谢谢。

{
layout:"border",
items:[{
region:"center"
},{
region:"west",
title:"左边",
width:200,
split:true,
collapsible:true,
hlDrop:true
}]
}
评论
liubiqu 2008-04-02
我感觉你是用ViewReport对象吧,你可以这样写
假如 var myForm = new Ext.ViewReport{...}
myForm.on("move",myMoveEvent);

然后你实现一下这个myMoveEvent函数如
function myMoveEvent(objForm,x,y)
{

}
move事件的参数如下所示(看API)
move : ( Ext.Component this, Number x, Number y )
Fires after the component is moved.
Fires after the component is moved.
Listeners will be called with the following arguments:

this : Ext.Component
x : Number
The new x position
y : Number
The new y position
发表评论

提醒: 该博客已发表在公共论坛,博客所有留言会成为论坛回贴,留言请注意遵守论坛发贴规则

您还没有登录,请登录后发表评论

pipashu
搜索本博客
博客分类
最近加入圈子
最新评论