This commit is contained in:
Dave Conway-Jones 2021-09-01 15:14:30 +01:00
parent 262298e46d
commit 6234299fd4
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF
2 changed files with 3 additions and 3 deletions

View File

@ -142,8 +142,8 @@ module.exports = function(RED) {
var height = config.height; var height = config.height;
if (height == 0) { height = 10; } if (height == 0) { height = 10; }
var size = ui.getSizes(); var size = ui.getSizes();
var frameWidth = (size.sx +size.cx) *width - size.cx - 1; var frameWidth = (size.sx +size.cx) * width - size.cx;
var frameHeight = (size.sy +size.cy) *height - size.cy - 2; var frameHeight = (size.sy +size.cy) * height - size.cy;
var url = encodeURI(config.path); var url = encodeURI(config.path);
var html = `<style>.nr-dashboard-ui_worldmap{padding:0;}</style><div style="overflow:hidden;"> var html = `<style>.nr-dashboard-ui_worldmap{padding:0;}</style><div style="overflow:hidden;">
<iframe src="${url}" width="${frameWidth}px" height="${frameHeight}px" style="border:none;"></iframe> <iframe src="${url}" width="${frameWidth}px" height="${frameHeight}px" style="border:none;"></iframe>

View File

@ -18,7 +18,7 @@ var menuOpen = false;
var clusterAt = 0; var clusterAt = 0;
var maxage = 600; // default max age of icons on map in seconds - cleared after 10 mins var maxage = 600; // default max age of icons on map in seconds - cleared after 10 mins
var baselayername = "OSM grey"; // Default base layer OSM but uniform grey var baselayername = "OSM grey"; // Default base layer OSM but uniform grey
var ibmfoot = "&nbsp;&copy; IBM 2015,2019" var ibmfoot = "&nbsp;&copy; IBM 2015,2021"
var inIframe = false; var inIframe = false;
var showUserMenu = true; var showUserMenu = true;
var showLayerMenu = true; var showLayerMenu = true;