#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:             |  
-----------------------+----------------------------------------------------

Comment(by martinkou):

 If it's simply setting the top/left/position=absolute of a div under the
 body then there'd be no need to do the measurements in GIMP. But the (350,
 450) here is set into a few nested divs with static, relative and absolute
 positioning, via YUI's setXY(). So (350, 450) is definitely not "what the
 browser thinks is right" - it's what YUI thinks is right.

 The browser itself does not tell you directly the position of a nested
 element whose elements has been static, relative and absolute positioned.
 So unless there's some prove that YUI's positioning algorithm is
 mathematically correct, it should be better to do the measurements in GIMP
 - by calculating the delta between the (0, 0) point in the document (which
 can be obtained by adding an absolutely positioned colored div into the
 body) and the top left corner pixel of the target div.

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/3034#comment:6>
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