Changeset 1466 for FCKeditor/trunk
- Timestamp:
- 02/04/08 04:43:17 (5 years ago)
- Location:
- FCKeditor/trunk
- Files:
-
- 2 edited
-
_whatsnew.html (modified) (1 diff)
-
editor/_source/internals/fcktoolbarset.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/_whatsnew.html
r1451 r1466 72 72 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1336">#1336</a>] Sometimes 73 73 the autogrow plugin didn't work properly in Firefox.</li> 74 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1728">#1728</a>] External toolbars 75 are now properly sized in Opera.</li> 74 76 </ul> 75 77 <p> -
FCKeditor/trunk/editor/_source/internals/fcktoolbarset.js
r1434 r1466 91 91 // Initialize the IFRAME document body. 92 92 eTargetDocument.open() ; 93 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, 0 );}</script></head><body style="overflow: hidden">' + document.getElementById( 'xToolbarSpace' ).innerHTML + '</body></html>' ) ; 93 eTargetDocument.write( '<html><head>' + sBase + '<script type="text/javascript"> var adjust = function() { window.frameElement.height = document.body.scrollHeight ; }; ' 94 + 'window.onresize = window.onload = ' 95 + 'function(){' // poll scrollHeight until it no longer changes for 1 sec. 96 + 'var timer = null;' 97 + 'var lastHeight = -1;' 98 + 'var lastChange = 0;' 99 + 'var poller = function(){' 100 + 'var currentHeight = document.body.scrollHeight || 0;' 101 + 'var currentTime = (new Date()).getTime();' 102 + 'if (currentHeight != lastHeight){' 103 + 'lastChange = currentTime;' 104 + 'adjust();' 105 + 'lastHeight = document.body.scrollHeight;' 106 + '}' 107 + 'if (lastChange < currentTime - 1000) clearInterval(timer);' 108 + '};' 109 + 'timer = setInterval(poller, 100);' 110 + '}' 111 + '</script></head><body style="overflow: hidden">' + document.getElementById( 'xToolbarSpace' ).innerHTML + '</body></html>' ) ; 94 112 eTargetDocument.close() ; 95 113
Note: See TracChangeset
for help on using the changeset viewer.
