From a84597ae7f45354ff13ea740056e26bc5bcb0d82 Mon Sep 17 00:00:00 2001 From: Benjamin Becquet Date: Sun, 13 Jul 2014 23:19:43 +0200 Subject: [PATCH] Use box-sizing model to avoid wrong offset --- leaflet.magnifyingglass.css | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/leaflet.magnifyingglass.css b/leaflet.magnifyingglass.css index 042a9b4..12c7124 100644 --- a/leaflet.magnifyingglass.css +++ b/leaflet.magnifyingglass.css @@ -4,11 +4,13 @@ box-shadow: 0 0 5px gray; position: absolute; overflow: hidden; + -moz-box-sizing: border-box; + box-sizing: border-box; } .leaflet-magnifying-glass > .leaflet-container { - height: 100%; - width: 100%; + height: 100%; + width: 100%; } /* Webkit-only workaround for the border-radius clipping bug,