Ticket #2320: 2320.patch
File 2320.patch, 2.4 KB (added by , 16 years ago) |
---|
-
_whatsnew.html
64 64 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2322">#2322</a>] Fixed the issue 65 65 where the fit window command loses the current selection and scroll position in the 66 66 editing area.</li> 67 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2320">#2320</a>] Fixed the issue 68 where the Find/Replace dialog scrolls the entire page.</li> 67 69 </ul> 68 70 <p> 69 71 <a href="_whatsnew_history.html">See previous versions history</a></p> -
editor/_source/internals/fckdomtools.js
989 989 // Appends the height it we are about to align the bottoms. 990 990 if ( alignTop === false ) 991 991 { 992 offset += element.offsetHeight ;992 offset += element.offsetHeight || 0 ; 993 993 994 994 // Consider the margin in the scroll, which is ok for our current 995 995 // needs, but needs investigation if we will be using this function 996 996 // in other places. 997 offset += parseInt( this.GetCurrentElementStyle( element, 'marginBottom' ) || 0, 10 ) ; 997 var margin = parseInt( this.GetCurrentElementStyle( element, 'marginBottom' ) || 0, 10 ) ; 998 if ( !isNaN( margin ) ) 999 offset += margin ; 998 1000 } 999 1001 1000 1002 // Appends the offsets for the entire element hierarchy. 1001 offset += element.offsetTop ; 1002 while ( ( element = element.offsetParent ) ) 1003 offset += element.offsetTop || 0 ; 1003 var elementPosition = FCKTools.GetDocumentPosition( window, element ) ; 1004 offset += elementPosition.y ; 1004 1005 1005 1006 // Scroll the window to the desired position, if not already visible. 1006 1007 var currentScroll = FCKTools.GetScrollPosition( window ).Y ; -
editor/dialog/fck_replace.html
185 185 var focusNode = domRange.StartNode ; 186 186 if ( focusNode.nodeType != 1 ) 187 187 focusNode = focusNode.parentNode ; 188 focusNode.scrollIntoView(false ) ;188 FCKDomTools.ScrollIntoView( focusNode, false ) ; 189 189 this._cursors = charRange._cursors ; 190 190 }, 191 191