#3034: Element document offset position not correct
-----------------------+----------------------------------------------------
 Reporter:  garry.yao  |       Owner:  martinkou      
     Type:  Bug        |      Status:  assigned       
 Priority:  High       |   Milestone:  CKEditor 3.0   
Component:  General    |     Version:  SVN (FCKeditor)
 Keywords:  Review?    |  
-----------------------+----------------------------------------------------
Changes (by martinkou):

  * keywords:  Review- => Review?


Comment:

 I've done quite some experiments - the offsetTop and offsetLeft attributes
 returned for the cke_text elements are simply off by 1 or 2 pixels in
 Firefox, Opera, and Safari. Even Firebug's highlight position and layout
 display give the wrong results. So it seems we can't correct that by
 fixing getDocumentPosition().

 On the other hand, I found putting position: relative on the cke_text CSS
 class would automatically make getDocumentPosition()'s output correct in
 Firefox, Opera and Safari. I have no idea why that would work... but there
 it is.

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/3034#comment:13>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
------------------------------------------------------------------------------
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to