Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Drawing.bBox measures multi-line text incorrectly #973

Copy link
Copy link
Closed
@rreusser

Description

@rreusser
Issue body actions

If text has <br>, it gets tspans and wraps onto multiple lines. If you pass the text node to Drawing.bBox though, it is measured as if the text is all on one line, giving the incorrect bBox.

In the example below, the text node is passed to Drawing.bBox. The 304 returned as the width is the sum of the widths of each tspan. When it's rendered in updatemenus though, each tspan is on a separate line.

2016-09-22 17 17 21

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething brokensomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.