Changeset 1180

Show
Ignore:
Timestamp:
2007-12-06 07:07:52 (8 months ago)
Author:
martinkou
Message:

Fix for #35 : Added a 10px border for the inner dialog body.
Fix for #35 : Made the background and editor blocker iframes resize when the outer window resizes.

Location:
FCKeditor/branches/features/floating_dialog/editor
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/branches/features/floating_dialog/editor/skins/default/fck_dialog.css

    r1104 r1180  
    2525{ 
    2626        margin: 0px; 
    27         padding: 0px; 
     27        padding: 10px; 
    2828} 
    2929 
  • FCKeditor/branches/features/floating_dialog/editor/_source/internals/fck.js

    r1179 r1180  
    815815                        FCKDomTools.SetOpacity( this.EditorBlocker, 0.5 ) ; 
    816816                        editorParentElement.style.overflow = 'visible' ; 
     817 
     818                        var me = this ; 
     819                        var resizeHandler = function() 
     820                        { 
     821                                FCKDomTools.SetElementStyles( me.EditorBlocker, 
     822                                                { 
     823                                                        'width' : editorFrame.offsetWidth + 'px', 
     824                                                        'height' : editorFrame.offsetHeight + 'px' 
     825                                                } ) ; 
     826                                FCKDomTools.SetElementStyles( me.BackgroundBlocker, 
     827                                                { 
     828                                                        'width' : Math.max( doc.documentElement.scrollWidth, 
     829                                                                doc.documentElement.clientWidth, 
     830                                                                doc.body.scrollWidth ) -1 + 'px', 
     831                                                        'height' : Math.max( doc.documentElement.scrollHeight, 
     832                                                                doc.documentElement.clientHeight, 
     833                                                                doc.body.scrollHeight ) -1 + 'px' 
     834                                                } ) ; 
     835                        } 
     836                        FCKTools.AddEventListener( this.Window.parent, 'resize', resizeHandler ) ; 
    817837                } 
    818838