From eddb5024ee2c447d5db0090b2bef3c08420c902a Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Sat, 06 Jul 2019 00:01:22 +0000 Subject: [PATCH] Fix map and panel animations (use position: fixed instead of absolute) --- map.html | 2 +- map.css | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/map.css b/map.css index 938f5e7..caf2ea8 100644 --- a/map.css +++ b/map.css @@ -5,7 +5,7 @@ } #map { - position: absolute; + position: fixed; top: 0; left: 0; right: 0; @@ -28,7 +28,7 @@ transition: right .4s, width .4s; - position: absolute; + position: fixed; width: 350px; right: -365px; top: 0; diff --git a/map.html b/map.html index 351e1c4..f052b3d 100644 --- a/map.html +++ b/map.html @@ -5,7 +5,7 @@ <meta charset="utf-8" /> <meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width" /> <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v5.3.0/css/ol.css" integrity="sha384-C7SzZySesoxngSK5V0BaD1DUap0LPZGWZpnXQGoIwvBXFc8G21y4s1QYvyr84FNa" crossorigin="anonymous"> -<link rel="stylesheet" href="map.css?v5" type="text/css" /> +<link rel="stylesheet" href="map.css?v6" type="text/css" /> <link rel="manifest" href="map.manifest" /> </head> <body> -- Gitblit v1.9.1