Ignore:
Timestamp:
05/20/05 05:01:00 (14 years ago)
Author:
gogo
Message:

Fix for fullscreen when the editor is enclosed in relative/absolute
positioned elements.

See #119 and #278

File:
1 edited

Legend:

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

    r168 r180  
    138138    sizeItDown(); 
    139139 
     140    // Restore all ancestor positions 
     141    var ancestor = this._htmlArea; 
     142    while((ancestor = ancestor.parentNode) && ancestor.style) 
     143    { 
     144      ancestor.style.position = ancestor._xinha_fullScreenOldPosition; 
     145      ancestor._xinha_fullScreenOldPosition = null; 
     146    } 
     147 
    140148    window.scroll(this._unScroll.x, this._unScroll.y); 
    141149  } 
     
    151159 
    152160 
     161    // Make all ancestors position = static 
     162    var ancestor = this._htmlArea; 
     163    while((ancestor = ancestor.parentNode) && ancestor.style) 
     164    { 
     165      ancestor._xinha_fullScreenOldPosition = ancestor.style.position; 
     166      ancestor.style.position = 'static'; 
     167    } 
     168 
    153169    // Maximize 
    154     window.scroll 
     170    window.scroll(0,0); 
    155171    this._htmlArea.style.position = 'absolute'; 
    156172    this._htmlArea.style.zIndex   = 9999; 
Note: See TracChangeset for help on using the changeset viewer.