Skip to content

Commit

Permalink
Correctly align annotation content in horizontal scrolling mode
Browse files Browse the repository at this point in the history
Not only was long text in popups no longer wrapped correctly, the
alignment was also center instead of left (or right, depending on the
locale used) for both text in popups and the other parts within the
annotation's section, such as the icon.
  • Loading branch information
timvandermeij committed Jan 10, 2021
1 parent 666ef6d commit d142276
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/annotation_layer_builder.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

.annotationLayer section {
position: absolute;
text-align: initial;
}

.annotationLayer .linkAnnotation > a,
Expand Down Expand Up @@ -165,6 +166,7 @@
cursor: pointer;
font: message-box;
font-size: 9px;
white-space: normal;
word-wrap: break-word;
}

Expand Down

0 comments on commit d142276

Please sign in to comment.