#2086: scrolling behaviour no longer correct in Firefox 3
-----------------------------+----------------------------------------------
  Reporter:  voracity        |       Owner:                    
      Type:  Bug             |      Status:  new               
  Priority:  Normal          |   Milestone:                    
 Component:  UI : Enter Key  |     Version:  FCKeditor 2.6 RC  
Resolution:                  |    Keywords:  Pending WorksForMe
-----------------------------+----------------------------------------------
Comment (by vtowel):

 Changing {{{scrollIntoView(false)}}} to {{{scrollIntoView(true)}}} for FF3
 still doesn't produce the correct behaviour. If {{{true}}} is used, when
 you hit enter the viewport scrolls so that the cursor is at the top of the
 browser window, whereas with {{{false}}} it scrolls so that the cursor was
 at the bottom of the browser window. It doesn't just leave it alone if the
 cursor is already positioned within the viewport.

 What I've found works best for the time being - though it's still not
 perfect - is to just restrict the use of {{{scrollIntoView()}}} to Gecko
 versions 1.8 and earlier (using a {{{FCKBrowserInfo.IsGecko10}}} check
 instead of just {{{FCKBrowserInfo.IsGecko}}}) in
 [/browser/FCKeditor/trunk/editor/_source/classes/fckenterkey.js
 editor/_source/classes/fckenterkey.js] and
 [/browser/FCKeditor/trunk/editor/_source/internals/fck.js
 editor/_source/internals/fck.js].

 This means that in FF3, when you hit enter at the bottom of the editor
 when the editor is partially hidden by the bottom of the browser window,
 the viewport won't automatically scroll down to reveal the new position of
 the cursor, which is what I guess {{{scrollIntoView()}}} was intended to
 solve.

 I still prefer this behaviour in FF3 over the current behaviour where the
 whole browser window gets scrolled up every time you hit enter, no matter
 where the cursor is in the editor.

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/2086#comment:3>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to