Changeset 168 for trunk/plugins


Ignore:
Timestamp:
05/18/05 16:14:40 (14 years ago)
Author:
gogo
Message:

Fixes for Standards Compliant modes in both IE and Mozilla.

The fixes mean that in standards mode:

  1. you are required that the top and bottom panel heights (if used) are set to explicit pixel heights
  2. percentage heights on the editor itself probably won't work well when resizing the window, if at all.
  3. all sizes must be correct CSS length items, specifically if you are specifying a pixel length then it MUST include the 'px' suffix, ie "config.height = '233px';", if you tried "config.height = 233;" it won't work correctly (or is unlikely to, especially for heights). This seems to be simply a requirement of standards mode, it's not specific to Xinha.

See

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/FullScreen/full-screen.js

    r166 r168  
    5858    // Width & Height of window 
    5959    var x,y; 
    60     if (self.innerHeight) // all except Explorer 
     60    if (window.innerHeight) // all except Explorer 
    6161    { 
    62       x = self.innerWidth; 
    63       y = self.innerHeight; 
     62      x = window.innerWidth; 
     63      y = window.innerHeight; 
    6464    } 
    6565    else if (document.documentElement && document.documentElement.clientHeight) 
     
    7575    } 
    7676 
    77     e.sizeEditor(x,y,true,true); 
    78     /* 
    79     if(!e._revertFullScreen) e._revertFullScreen = e.getInnerSize(); 
    80     width = x; 
    81     height = y - e._toolbar.offsetHeight - (e._statusBar ? e._statusBar.offsetHeight : 0); 
    82     e.setInnerSize(width,height); 
    83  
    84     // IE in standards mode needs us to set the width of the tool & status bar, 
    85     // I have NO idea why 
    86     if(HTMLArea.is_ie && document.documentElement && document.documentElement.clientHeight) 
    87     { 
    88       e._toolbar.style.width = (width - 12) + 'px'; 
    89       if(e._statusBar) 
    90       { 
    91         e._statusBar.style.width = (width - 12) + 'px'; 
    92       } 
    93     } 
    94     */ 
     77    e.sizeEditor(x + 'px',y + 'px',true,true); 
    9578    e._sizing = false; 
    9679  } 
     
    10184    e._sizing = true; 
    10285    e.initSize(); 
    103     /* 
    104     e.setInnerSize(e._revertFullScreen.width, e._revertFullScreen.height); 
    105     if(HTMLArea.is_ie && document.documentElement && document.documentElement.clientHeight) 
    106     { 
    107       e._toolbar.style.width = ''; 
    108       if(e._statusBar) 
    109       { 
    110         e._statusBar.style.width = ''; 
    111       } 
    112     } 
    113     e._revertFullScreen = null; 
    114     */ 
    11586    e._sizing = false; 
    11687  } 
Note: See TracChangeset for help on using the changeset viewer.