Ticket #2127: 2127_3.patch

File 2127_3.patch, 1.8 KB (added by Martin Kou, 16 years ago)
  • _whatsnew.html

     
    122122                        Safari 3.1 browser bug which caused the Fit Window button to give a blank screen.</li>
    123123                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2218">#2218</a>] Improved Gecko based browser
    124124                        detection to accept Epiphany/Gecko as well.</li>
     125                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2127">#2127</a>] Changed floating dialogs to use
     126                        fixed positioning so that they are no longer affected by scrolling.</li>
    125127        </ul>
    126128        <h3>
    127129                Version 2.6</h3>
  • editor/_source/internals/fckdialog.js

     
    9898
    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 ) ;
    104106
     
    114116                        dialog.allowTransparency = true ;
    115117                        FCKDomTools.SetElementStyles( dialog,
    116118                                        {
    117                                                 'position'      : 'absolute',
     119                                                'position'      : ( FCKBrowserInfo.IsIE && !FCKBrowserInfo.IsIE7 ) ? 'absolute' : 'fixed',
    118120                                                'top'           : iTop + 'px',
    119121                                                'left'          : iLeft + 'px',
    120122                                                'width'         : width + 'px',
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy