isunxoft是啥?google搜索不到
snapnet 评论于 2007-01-18 22:20 回复 引用 查看
mark下 我也没搜索到
hunts.c 评论于 2007-01-18 22:33 回复 引用 查看
调试起来比较麻烦。
唉,firefox不提供onresize真是麻烦。
jeffrey zhao 评论于 2007-01-18 22:36 回复 引用 查看
#4楼[楼主]
isunxoft 就在该博客可以下载到.http://isunstudio.cnblogs.com/ 首页
isun自由软件团件 评论于 2007-01-19 07:34 回复 引用 查看
#5楼[楼主]
@jeffrey zhao
是的,要计算好各元素的长宽.
isun自由软件团件 评论于 2007-01-19 07:36 回复 引用 查看
如果是firfox怎么办呢?回头试试,嘿嘿
wangxingxin168[未注册用户] 评论于 2007-01-19 08:05 回复 引用
“但是在web上程序没有办法实时检测到窗口大小变化”——有的,onresize事件,自己看吧:
http://www.w3schools.com/jsref/jsref_onresize.asp
用settimeout的话,假设应用的resize逻辑复杂一些,resize处理要占用1000ms以上(这在效率低下的ie6 script引擎中是很正常的),那么这个settimeout已经让用户无法操作了。
cat chen 评论于 2007-01-19 08:41 回复 引用 查看
@jeffrey zhao
firefox支持onresize啊,反而ie的onresize比较buggy,有时候会触发2~3次(在一次真正的窗口onresize下)。
cat chen 评论于 2007-01-19 08:44 回复 引用 查看
#9楼[楼主]
@cat chen
谢谢,试了,确实可以.
isun自由软件团件 评论于 2007-01-19 10:21 回复 引用 查看
这个功能很有用啊
高海东 评论于 2007-01-19 13:04 回复 引用 查看
不是很欣赏
可用性与用户体验不够好
我爱江南 评论于 2007-01-19 21:02 回复 引用
it is not very useful. suppose you have another element added to your page layout, you have to modify onresize event handler to make it work.
gwt has a resize panel (? cannot remember exactly). that is the way to do it in a more general way.