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) {