From 3544f7060402960163feb3461fe6eb55b5c07d73 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Wed, 26 Feb 2014 19:22:24 +0100 Subject: [PATCH] Explicit box model definition for box model dependent sizing The zoom in/out tooltips are clipped when a css reset sets the box-sizing to anything other than content-box. This breaks the sizing of these tooltips, because they rely on content-box sizing. This issue can e.g. be seen when using a bootstrap 3.x bootstrap.css --- css/ol.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/css/ol.css b/css/ol.css index 91ee50ca68..5b5ca519b9 100644 --- a/css/ol.css +++ b/css/ol.css @@ -198,6 +198,9 @@ button.ol-full-screen-true:after { /* show a tooltip offset to below and right */ .ol-has-tooltip:hover [role=tooltip], .ol-has-tooltip:focus [role=tooltip] { + -moz-box-sizing: content-box; + -webkit-box-sizing: content-box; + box-sizing: content-box; clip: auto; padding: 0 .4em; font-size: .8em;