Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

fix toolbars on the right #164

Merged
merged 1 commit into from

2 participants

@paulcpederson

When using the "topright" position, the contextual buttons are off-screen right. This fixes the css to display these on the left side.

@jacobtoye jacobtoye merged commit 69dba7c into Leaflet:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 15 additions and 0 deletions.
  1. +15 −0 dist/leaflet.draw.css
View
15 dist/leaflet.draw.css
@@ -47,6 +47,11 @@
top: 0;
}
+.leaflet-right .leaflet-draw-actions {
+ right:26px;
+ left:auto;
+}
+
.leaflet-draw-actions li {
float: left;
}
@@ -60,6 +65,16 @@
border-radius: 0 4px 4px 0;
}
+.leaflet-right .leaflet-draw-actions li:last-child a {
+ -webkit-border-radius: 0;
+ border-radius: 0;
+}
+
+.leaflet-right .leaflet-draw-actions li:first-child a {
+ -webkit-border-radius: 4px 0 0 4px;
+ border-radius: 4px 0 0 4px;
+}
+
.leaflet-draw-actions a {
background-color: #919187;
border-left: 1px solid #AAA;
Something went wrong with that request. Please try again.