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

Could someone explain to me how this package work? #34

Open
tonypig93 opened this issue Mar 6, 2019 · 1 comment
Open

Could someone explain to me how this package work? #34

tonypig93 opened this issue Mar 6, 2019 · 1 comment

Comments

@tonypig93
Copy link

I've read the source code, and I got some questions:

  1. Any browser which implements attachEvent will support the resize event on any DOM element such as <div>?
  2. According to question 1, other browsers do not support attachEvent so the resize event will not work, but how does the <object> element can?
  3. Can we use <object> to detect resize in all browsers, even in IE 9 10?
@paxelpixel
Copy link

1 only works on ie
2 object doesnt support resize, but object hold another html document which supports resize. so its like a nice little hack

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