Skip to content

fix label bbox sizes #1016

Closed
Closed

Description

@ansis

Sometimes labels go out of their boxes:
screen shot 2015-02-20 at 11 58 57 am

It looks like the length of the last line is not being considered when calculating the bbox.

It calculates the bbox in js/symbol/shaping.js.

There is also a + lineHeight hack here to make boxes a bit wider. This is because maxLineWidth is based on glyph center points and doesn't consider how wide the glyphs actually are.

http://localhost:3000/debug/#17.18/38.90726/-77.02751

Activity

  1. added a commit that references this issue on Mar 5, 2015
    e07c041
  2. ansis commented on Mar 5, 2015

    @ansis
    ContributorAuthor

    fixed in e07c041

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions