From b30bbdc2486b69bc702e58600bc1dd2d964ddd94 Mon Sep 17 00:00:00 2001 From: pathmapper Date: Sat, 10 Aug 2019 10:37:39 +0200 Subject: [PATCH] Calculate popup height depending on viewport --- src/styles/_popup.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/styles/_popup.scss b/src/styles/_popup.scss index 27a2f9eb..5f003778 100644 --- a/src/styles/_popup.scss +++ b/src/styles/_popup.scss @@ -28,7 +28,7 @@ } .maputnik-feature-property-popup { - max-height: 500px; + max-height: calc(100vh - 40px - 40px); /* toolbar height: 40px, padding: 40px */ overflow-y: auto; .maputnik-input-block { margin: 0;