[Webkit-unassigned] [Bug 18123] New: Position of dynamically inserted content in DIV with contenteditable=true seems to vary randomly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 26 14:31:38 PDT 2008


http://bugs.webkit.org/show_bug.cgi?id=18123

           Summary: Position of dynamically inserted content in DIV with
                    contenteditable=true seems to vary randomly
           Product: WebKit
           Version: 525.x (Safari 3.1)
          Platform: PC
        OS/Version: Windows Vista
            Status: UNCONFIRMED
          Severity: Major
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: rpaplin at msn.com


What we are attempting to do here is emulate the ability that Internet Explorer
has to get the offsetTop & offsetLeft of a TextRange.
As you are aware the Range object that Safari & Firefox implement does not have
offsetTop & offsetLeft properties.
In order to obtain this information, we temporarily insert a SPAN into a Range,
calculate the offsetTop & offsetLeft properties of the newly inserted SPAN, and
then remove the SPAN from our Range.

BTW - If you know of a better way to get the approximate offsetTop & offsetLeft
position of range, let us know.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list