RussoNC / css3-mediaqueries-js

Automatically exported from code.google.com/p/css3-mediaqueries-js
0 stars 0 forks source link

iFrame Support #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a CSS File that uses media queries based on with
2. load that on another page with an iFrame
3. See that the media query is not trigered, works on native browsers

What is the expected output? What do you see instead?
It should notice that the iframe is smaller and use the media query

What version of the product are you using? On what operating system?
Works on latest, chrome, safari and firefox, not on IE 7, 8,9

Please provide any additional information below.

Original issue reported on code.google.com by pascal.h...@gmail.com on 13 Jul 2012 at 5:03

GoogleCodeExporter commented 9 years ago
What worked for us is within the domReady function inside the  if(ua.ie) block 
...

replace
    try{
        document.documentElement.doScroll("left");
    }
    catch(e){
        setTimeout(arguments.callee,50);
        return;
    }

with
    if( ! document.readyState || document.readyState !== "complete" ) {
        setTimeout(arguments.callee,50);
        return;
    }

Original comment by er...@mindjumpers.com on 31 Mar 2014 at 8:13

GoogleCodeExporter commented 9 years ago
Back from the dead... There is a new version of the script. It has some CSS 
parsing and processing improvements. If you're still using it, or would like to 
try again, could you confirm that this issue is solved or not?

Original comment by wou...@dynora.nl on 4 Apr 2014 at 11:46