Changes between Initial Version and Version 2 of Ticket #8809


Ignore:
Timestamp:
Mar 4, 2009, 9:08:57 PM (12 years ago)
Author:
Eugene Lazutkin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8809

    • Property Status changed from new to assigned
    • Property Component changed from General to Dojox
    • Property Summary changed from dojox.html.metrics throws errors if loaded from/used in an iframe to [PATCH][CCLA] dojox.html.metrics throws errors if loaded from/used in an iframe
    • Property Milestone changed from tbd to future
    • Property Owner changed from uhop to Eugene Lazutkin
  • Ticket #8809 – Description

    initial v2  
    66After some look, changing both the IE and non IE cases to:
    77
    8                 if(dojo.isIE){
    9                         f.onreadystatechange = function(){
    10                                 if(f.contentWindow.document.readyState == "complete"){
    11                                         //f.onresize = Function(f.contentWindow.parent[dojox._scopeName].html.metrics._fontresize());
    12                                         f.onresize = f.contentWindow.parent[dojox._scopeName].html.metrics._fontresize;
    13                                 }
    14                         };
    15                 }else{
    16                         f.onload = function(){
    17                                 //f.contentWindow.onresize = Function('window.parent.'+dojox._scopeName+'.html.metrics._fontresize()');
    18                                 f.contentWindow.onresize = f.contentWindow.parent[dojox._scopeName].html.metrics._fontresize;
    19                         };
    20                 }
     8{{{
     9#!js
     10if(dojo.isIE){
     11  f.onreadystatechange = function(){
     12    if(f.contentWindow.document.readyState == "complete"){
     13      //f.onresize = Function(f.contentWindow.parent[dojox._scopeName].html.metrics._fontresize());
     14      f.onresize = f.contentWindow.parent[dojox._scopeName].html.metrics._fontresize;
     15    }
     16  };
     17}else{
     18  f.onload = function(){
     19    //f.contentWindow.onresize = Function('window.parent.'+dojox._scopeName+'.html.metrics._fontresize()');
     20    f.contentWindow.onresize = f.contentWindow.parent[dojox._scopeName].html.metrics._fontresize;
     21  };
     22}
     23}}}
    2124
    2225Seems to resolve it on IE and FF3