为什么在Chrome中更改标签页时触发'window.resize'事件(6.0.472.55)? [英] Why does the 'window.resize' event fire when changing tabs in Chrome (6.0.472.55)?

查看:132
本文介绍了为什么在Chrome中更改标签页时触发'window.resize'事件(6.0.472.55)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Chrome(最新版本6.0.472.55)中为 window.onresize 编写处理程序时,今晚我遇到了一个有趣的 bug 功能。首先打开两个标签,然后在第一个标签中打开这个jsFiddle



随意调整窗口大小,对话框按预期工作。现在,尝试切换到第二个标签-_-。为什么选项卡更改时调整大小会触发?如果我需要提交bug,有人可以提供见解/更多详细信息吗?

已向Google提交code.google.com/p/chromium/issues/detail?id=55793rel =nofollow noreferrer> bug已提交。目前,我只是忽略它,因为我的实际 onresize 处理程序不显示警报框。


I came across an interesting bug feature tonight when writing a handler for window.onresize in Chrome (the latest version 6.0.472.55). First open two tabs, then in the first tab open this jsFiddle.

Resize the window at will and the dialog box works as expected. Now, try switching to the 2nd tab -_-. Why is resize firing when the tab is changed? Could someone provide insight/more details if I need to file a bug?

解决方案

The bug has been filed with Google. For the time being, I've just ignored it since my actual onresize handler doesn't display alert boxes.

这篇关于为什么在Chrome中更改标签页时触发'window.resize'事件(6.0.472.55)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆