From 0a398b98b041caf84b4f31274707305372ac7bd9 Mon Sep 17 00:00:00 2001 From: Franzz Date: Thu, 26 Mar 2020 21:12:43 +0100 Subject: [PATCH] Fix Elevation Panel Width --- masks/project.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/masks/project.html b/masks/project.html index ae5c7fe..3029390 100644 --- a/masks/project.html +++ b/masks/project.html @@ -62,6 +62,7 @@ function toggleFeedPanel(bShow) { else $Container.toggleClass('with-feed', bShow); oSpot.tmp('with_feed', $Container.hasClass('with-feed')); + oSpot.onResize(); } function isMobile() { @@ -202,7 +203,8 @@ function onAutoUpdate(bFirstExec) { } function getElevWidth() { - return $('#projects').width() - oSpot.tmp('feed_width') - $('.leaflet-bottom.leaflet-left').outerWidth(true) - 6; + // Page widthFeed Panel Legend width (bottom left) Elevation right margin (from page side) + return $('#projects').width() - oSpot.tmp('feed_width') - $('.leaflet-bottom.leaflet-left > .leaflet-control-layers').outerWidth(true) - parseInt($('.leaflet-bottom.leaflet-right > .leaflet-control-scale').css('margin-right').slice(0, -2)); } function initSpotMessages(aoMessages, aoTracks) {