Permalink
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...
1 parent 55cce89 commit ef44b7c7f99a54ddceca450ad7de111bf1d49794 Jason Johnston committed May 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 sources/Element.js
View
@@ -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

reyuto May 9, 2013

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

lojjic May 9, 2013

Owner

I don't understand your question, please rephrase.

@reyuto

reyuto May 10, 2013

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 pie.htc, would setting the poll affect those elements on IE9? Assuming that the pie.htc is still being used on some other elements on that page?

// 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().

0 comments on commit ef44b7c

Please sign in to comment.