Changeset 491

Show
Ignore:
Timestamp:
2007-07-20 22:14:41 (18 months ago)
Author:
alfonsoml
Message:

little improvement on [434] to show the correct size as soon as possible

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/internals/fcktoolbarset.js

    r434 r491  
    8888                        // Initialize the IFRAME document body. 
    8989                        eTargetDocument.open() ; 
    90                         eTargetDocument.write( '<html><head>' + sBase + '<script type="text/javascript"> var adjust = function() { window.frameElement.height = document.body.scrollHeight ; }; window.onresize = adjust; window.onload = function () {window.setTimeout( adjust, 1000 ); }</script></head><body style="overflow: hidden">' + document.getElementById( 'xToolbarSpace' ).innerHTML + '</body></html>' ) ; 
     90                        eTargetDocument.write( '<html><head>' + sBase + '<script type="text/javascript"> var adjust = function() { window.frameElement.height = document.body.scrollHeight ; }; window.onresize = adjust; window.onload = function () {adjust(); window.setTimeout( adjust, 1000 ); }</script></head><body style="overflow: hidden">' + document.getElementById( 'xToolbarSpace' ).innerHTML + '</body></html>' ) ; 
    9191                        eTargetDocument.close() ; 
    9292