Changeset 2094

Show
Ignore:
Timestamp:
2008-06-19 06:31:33 (6 months ago)
Author:
martinkou
Message:

Fixed #2127 : Changed floating dialogs to use fixed positioning so that they are no longer affected by scrolling.

Location:
FCKeditor/trunk
Files:
2 modified

Legend:

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

    r2073 r2094  
    9999                        // Calculate the dialog position, centering it on the screen. 
    100100                        var viewSize = FCKTools.GetViewPaneSize( topWindow ) ; 
    101                         var scrollPosition = FCKTools.GetScrollPosition( topWindow ) ; 
     101                        var scrollPosition = { 'X' : 0, 'Y' : 0 } ; 
     102                        if ( FCKBrowserInfo.IsIE && !FCKBrowserInfo.IsIE7 ) 
     103                                FCKTools.GetScrollPosition( topWindow ) ; 
    102104                        var iTop  = Math.max( scrollPosition.Y + ( viewSize.Height - height - 20 ) / 2, 0 ) ; 
    103105                        var iLeft = Math.max( scrollPosition.X + ( viewSize.Width - width - 20 )  / 2, 0 ) ; 
     
    115117                        FCKDomTools.SetElementStyles( dialog, 
    116118                                        { 
    117                                                 'position'      : 'absolute', 
     119                                                'position'      : ( FCKBrowserInfo.IsIE && !FCKBrowserInfo.IsIE7 ) ? 'absolute' : 'fixed', 
    118120                                                'top'           : iTop + 'px', 
    119121                                                'left'          : iLeft + 'px', 
  • FCKeditor/trunk/_whatsnew.html

    r2086 r2094  
    5454                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1614">#1614</a>] Unified 
    5555                        FCKConfig.FullBasePath with FCKConfig.BasePath.</li> 
     56                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2127">#2127</a>] Changed floating dialogs to use 
     57                        fixed positioning so that they are no longer affected by scrolling.</li> 
    5658        </ul> 
    5759        <p>