You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by bu...@apache.org on 2008/10/30 03:56:38 UTC
DO NOT REPLY [Bug 46127] New: Trailing spaces don't contribute to
bounding box
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
DO NOT REPLY [Bug 46127] Leading and/or trailing spaces don't
contribute to bounding box
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46127
Helder Magalhães <he...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel.a.joyce@gmail.com
--- Comment #2 from Helder Magalhães <he...@gmail.com> 2009-10-24 03:46:39 UTC ---
*** Bug 44355 has been marked as a duplicate of this bug. ***
--
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
DO NOT REPLY [Bug 46127] Leading and/or trailing spaces don't
contribute to bounding box
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46127
Helder Magalhães <he...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS/Version|Linux |All
Summary|Trailing spaces don't |Leading and/or trailing
|contribute to <text> |spaces don't contribute to
|bounding box |<text> bounding box
--- Comment #1 from Helder Magalhães <he...@gmail.com> 2008-12-22 07:53:20 PST ---
Changed the issue's title to better reflect the "leading" spaces, which was
somehow obfuscated in the description. Also I'm assuming (without testing,
though) this symptom occurs in all platforms. :-)
--
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