Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firefox下隐藏的iframe引入kissy seed初始化报错 #563

Closed
akecn opened this issue Feb 18, 2014 · 4 comments
Closed

firefox下隐藏的iframe引入kissy seed初始化报错 #563

akecn opened this issue Feb 18, 2014 · 4 comments
Milestone

Comments

@akecn
Copy link

akecn commented Feb 18, 2014

A页面嵌套iframe。其样式为display: none
iframe的url地址为B页面。
B页面引入kissy seed文件。

Firefox浏览器下
KISSY.ready === undefined

原因:On Firefox (and others) IFRAME's hidden(and inherited) using display:none will NOT have a rendering context (computedStyle).
解释来源如下:http://www.sencha.com/forum/showthread.php?132187-Issue-with-the-computed-style-on-hidden-elements-using-Firefox-and-Ext-JS-4&s=0ef7deb3198af6f13ef6c286a64c928a&p=671006&viewfull=1#post671006

@yiminghe
Copy link
Member

无法修复,绕过:

<div style="width:0px;height:0px; overflow:hidden;">
   <iframe src="iframe.htm" width="601" height="601"></iframe>
</div>

@akecn
Copy link
Author

akecn commented Feb 20, 2014

不try catch一下么?至少不影响其他代码吧?
现在因为这个问题,导致其他的功能也无法使用了~

@yiminghe
Copy link
Member

后面kissy代码依赖这个

yiminghe added a commit to yiminghe/kissy that referenced this issue Jun 10, 2014
@yiminghe yiminghe added this to the 1.4.4 milestone Jun 10, 2014
@yiminghe
Copy link
Member

已修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants