Changeset 1465

Show
Ignore:
Timestamp:
2008-02-04 04:40:31 (8 months ago)
Author:
martinkou
Message:

Fixed #1795 : Fixed the issue where the blocking layer in dialog mode does not work in quirks mode with the editor maximized.

Files:
1 modified

Legend:

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

    r1456 r1465  
    6363                        return ; 
    6464                 
    65                 var documentElement = topDocument.documentElement ; 
     65                var relElement = FCKTools.IsStrictMode( topDocument ) ? topDocument.documentElement : topDocument.body ; 
    6666                         
    6767                FCKDomTools.SetElementStyles( cover, 
    6868                        { 
    69                                 'width' : Math.max( documentElement.scrollWidth, 
    70                                         documentElement.clientWidth, 
     69                                'width' : Math.max( relElement.scrollWidth, 
     70                                        relElement.clientWidth, 
    7171                                        topDocument.scrollWidth || 0 ) - 1 + 'px', 
    72                                 'height' : Math.max( documentElement.scrollHeight, 
    73                                         documentElement.clientHeight, 
     72                                'height' : Math.max( relElement.scrollHeight, 
     73                                        relElement.clientHeight, 
    7474                                        topDocument.scrollHeight || 0 ) - 1 + 'px' 
    7575                        } ) ;