Skip to content
This repository was archived by the owner on Nov 27, 2019. It is now read-only.
This repository was archived by the owner on Nov 27, 2019. It is now read-only.

Popup layout issues: grey rows extend beyond popup balloon #10

@zarino

Description

@zarino

When text in the popup is of a certain length, the table seems to extend (in this case) 20px beyond the edge of the popup, resulting in weird grey bars.

screen shot 2013-06-22 at 12 28 41

The usual fixes for limiting a table's width don't seem to work:

.table {
  width: 100%;
  max-width: 100%;
  word-wrap: break-word;
}

The cheat's solution would be to set overflow:hidden on the table's parent, .leaflet-popup-content, but then the cell content collides with the edge of the popup.

screen shot 2013-06-22 at 12 38 17

I think it's being caused by the truncated link on the second line. Making that shorter fixes the problem.

Another solution, then, might be to remove the RegExp truncation, and instead use:

.table a {
  display: block;
  width: 80%; /* percentages don't work */
  width: 200px;
  overflow: hidden;
  text-overflow: elipsis;
}

But then you're still stuck with the random 200px width, rather than one based on the width of the parent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions