Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Turn polling on by default in IE9. This works around lack of onresize…

… firing when toggling display of ancestor element. Hoping for a less heavy-handed solution.
  • Loading branch information...
commit ef44b7c7f99a54ddceca450ad7de111bf1d49794 1 parent 55cce89
Jason Johnston authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  sources/Element.js
2  sources/Element.js
@@ -45,7 +45,7 @@ PIE.Element = (function() {
// Polling for size/position changes: default to on in IE8, off otherwise, overridable by -pie-poll
poll = cs.getAttribute( pollCssProp );
- poll = ieDocMode === 8 ? poll !== 'false' : poll === 'true';
+ poll = ieDocMode > 7 ? poll !== 'false' : poll === 'true';
reyuto added a note

This can seriously deteriorate the performance of a page, by polling for all CSS3 elements. Does this in any way override the :root CSS selector which we add for pie to not poll on IE9?

@lojjic Owner
lojjic added a note

I don't understand your question, please rephrase.

reyuto added a note

What I wanted to understand was, that if I have removed the behavior property from a selector in my CSS which ideally was set to, would setting the poll affect those elements on IE9? Assuming that the is still being used on some other elements on that page?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
// Force layout so move/resize events will fire. Set this as soon as possible to avoid layout changes
// after load, but make sure it only gets called the first time through to avoid recursive calls to init().
Please sign in to comment.
Something went wrong with that request. Please try again.