Opened 14 years ago

Closed 11 years ago

#5858 closed Bug (expired)

Error on ScrollIntoView

Reported by: Tareq Owned by:
Priority: Normal Milestone:
Component: General Version: 3.3
Keywords: HasPatch Cc:

Description (last modified by Frederico Caldeira Knabben)

We use 3.3 of CKEDITOR. We face problem in the ScrollintoView function. After digging in the function's code let see the values of the local variables

offset= 0 ;
CurrentScroll =114;
winHeight = 680;

But this code block is generating error:

if ( offset > currentScroll || offset < (currentScroll - winHeight))
    win.$.scrollTo( 0, offset ); 

I solve the error by new code:

if ( offset > currentScroll || offset < (currentScroll - winHeight) || offset == 0 ) 
    win.$.scrollTo( 0, offset );
}}}}

Change History (3)

comment:1 Changed 14 years ago by Frederico Caldeira Knabben

Description: modified (diff)
Keywords: HasPatch added

comment:2 Changed 13 years ago by Wiktor Walc

Status: newpending

Could you describe in details the problem you have? In what browser does it happen, how to reproduce it easily and so on.

comment:3 Changed 11 years ago by Piotrek Koszuliński

Resolution: expired
Status: pendingclosed
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy