DO NOT REPLY [Bug 46127] New: Trailing spaces don't contribute to <text> bounding box

View: New views
3 Messages — Rating Filter:   Alert me  

DO NOT REPLY [Bug 46127] New: Trailing spaces don't contribute to <text> bounding box

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
        ReportedBy: cam@...


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@...
For additional commands, e-mail: batik-dev-help@...


DO NOT REPLY [Bug 46127] Leading and/or trailing spaces don't contribute to <text> bounding box

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://issues.apache.org/bugzilla/show_bug.cgi?id=46127


Helder Magalhães <helder.magalhaes@...> 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 <helder.magalhaes@...>  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@...
For additional commands, e-mail: batik-dev-help@...


DO NOT REPLY [Bug 46127] Leading and/or trailing spaces don't contribute to <text> bounding box

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://issues.apache.org/bugzilla/show_bug.cgi?id=46127

Helder Magalhães <helder.magalhaes@...> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.a.joyce@...

--- Comment #2 from Helder Magalhães <helder.magalhaes@...> 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@...
For additional commands, e-mail: batik-dev-help@...