为什么在Chrome中更改标签页时触发'window.resize'事件(6.0.472.55)? [英] Why does the 'window.resize' event fire when changing tabs in Chrome (6.0.472.55)?
问题描述
在Chrome(最新版本6.0.472.55)中为 window.onresize
编写处理程序时,今晚我遇到了一个有趣的 bug 功能。首先打开两个标签,然后在第一个标签中打开这个jsFiddle 。
随意调整窗口大小,对话框按预期工作。现在,尝试切换到第二个标签-_-。为什么选项卡更改时调整大小
会触发?如果我需要提交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屋!