Skip to content

Commit

Permalink
.leaflet-popup-content wide and tall
Browse files Browse the repository at this point in the history
Popup default behaviour does not satisfiy me.
It used to adapt to content, width = longer word (or image) length (mainly it's images with 120px) 
So I enlarge popup to 300px in order to receive some descriptive texts (sentences, and about 20-30 lines)
In case of tall text, it does not exceed 300px, and the content becomes scrollable
  • Loading branch information
7tonin committed Jul 26, 2018
1 parent 601a83c commit 4f031aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions leaflet/leaflet.css
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,9 @@
border-radius: 12px;
}
.leaflet-popup-content {
min-width: 300px;
max-height: 300px;
overflow-y: auto;
margin: 13px 19px;
line-height: 1.4;
}
Expand Down

0 comments on commit 4f031aa

Please sign in to comment.