Changeset 434


Ignore:
Timestamp:
07/10/07 23:43:02 (7 years ago)
Author:
alfonsoml
Message:

Fix for #272
Adding a timeout on the onload of the toolbar seems to be enough to allow it to readjust and calculate the proper height.

Location:
FCKeditor/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/_whatsnew.html

    r427 r434  
    110110                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/268">#268</a>] Fixed special XHTML characters present  
    111111                        in event attribute values being converted inappropriately when switching to source view.</li> 
     112                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/272">#272</a>] The toolbar was cutted sometimes in IE to 
     113                        just one row if there are multiple instances of the editor.</li> 
    112114        </ul> 
    113115        <h3> 
  • FCKeditor/trunk/editor/_source/internals/fcktoolbarset.js

    r431 r434  
    8888                        // Initialize the IFRAME document body. 
    8989                        eTargetDocument.open() ; 
    90                         eTargetDocument.write( '<html><head>' + sBase + '<script type="text/javascript"> window.onload = window.onresize = function() { window.frameElement.height = document.body.scrollHeight ; } </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 () {window.setTimeout( adjust, 1000 ); }</script></head><body style="overflow: hidden">' + document.getElementById( 'xToolbarSpace' ).innerHTML + '</body></html>' ) ; 
    9191                        eTargetDocument.close() ; 
    9292 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy