Ticket #2127: 2127_3.patch
File 2127_3.patch, 1.8 KB (added by , 16 years ago) |
---|
-
_whatsnew.html
122 122 Safari 3.1 browser bug which caused the Fit Window button to give a blank screen.</li> 123 123 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2218">#2218</a>] Improved Gecko based browser 124 124 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> 125 127 </ul> 126 128 <h3> 127 129 Version 2.6</h3> -
editor/_source/internals/fckdialog.js
98 98 99 99 // Calculate the dialog position, centering it on the screen. 100 100 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 ) ; 102 104 var iTop = Math.max( scrollPosition.Y + ( viewSize.Height - height - 20 ) / 2, 0 ) ; 103 105 var iLeft = Math.max( scrollPosition.X + ( viewSize.Width - width - 20 ) / 2, 0 ) ; 104 106 … … 114 116 dialog.allowTransparency = true ; 115 117 FCKDomTools.SetElementStyles( dialog, 116 118 { 117 'position' : 'absolute',119 'position' : ( FCKBrowserInfo.IsIE && !FCKBrowserInfo.IsIE7 ) ? 'absolute' : 'fixed', 118 120 'top' : iTop + 'px', 119 121 'left' : iLeft + 'px', 120 122 'width' : width + 'px',