xmlgraphics-batik-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46127] New: Trailing spaces don't contribute to <text> bounding box
Date Thu, 30 Oct 2008 02:56:38 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46127

           Summary: Trailing spaces don't contribute to <text> bounding box
           Product: Batik
           Version: 2.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: SVG DOM
        AssignedTo: batik-dev@xmlgraphics.apache.org
        ReportedBy: cam@apache.org


When xml:space="preserve", trailing spaces should contribute to the <text>
element's bounding box.  However, in the following document, both <text>
elements return the same bounding box:

<svg xmlns='http://www.w3.org/2000/svg'
     width='400' height='300' viewBox='0 0 100 100'>
  <text x='10' y='10' onclick='alert(evt.target.getBBox().width)'
xml:space='preserve'>a</text>
  <text x='10' y='30' onclick='alert(evt.target.getBBox().width)'
xml:space='preserve'>a </text>
</svg>

The same applies to leading spaces.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


Mime
View raw message