Fix for iframe height.

To close #210
pull/215/head
Dave Conway-Jones 2 years ago
parent 13926ef385
commit ac272121d5
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF

@ -1,5 +1,6 @@
### Change Log for Node-RED Worldmap
- v2.30.3 - Fix for iframe height. Issue #210
- v2.30.2 - Fix for bad handling of mapbox id. Issue #208
- v2.30.1 - Don't resend bounds if not changed. Issue #209
- v2.30.0 - Add show/hide ruler option. PR #206

@ -11,6 +11,7 @@ map web page for plotting "things" on.
### Updates
- v2.30.3 - Fix for iframe height. Issue #210
- v2.30.2 - Fix for bad handling of mapbox id. Issue #208
- v2.30.1 - Don't resend bounds if not changed. Issue #209
- v2.30.0 - Add show/hide ruler option. PR #206

@ -1,6 +1,6 @@
{
"name": "node-red-contrib-web-worldmap",
"version": "2.30.2",
"version": "2.30.3",
"description": "A Node-RED node to provide a web page of a world map for plotting things on.",
"dependencies": {
"@turf/bezier-spline": "~6.5.0",

@ -173,7 +173,7 @@ module.exports = function(RED) {
if (height == 0) { height = 10; }
var size = ui.getSizes();
var frameWidth = (size.sx + size.cx) * width - size.cx;
var frameHeight = (size.sy + size.cy) * height - size.cy;
var frameHeight = (size.sy + size.cy) * height - size.cy + 40;
var url = encodeURI(path.posix.join(RED.settings.httpNodeRoot||RED.settings.httpRoot,config.path));
if (config.layer === "MB3d") { url += "/index3d.html"; }
var html = `<style>.nr-dashboard-ui_worldmap{padding:0;}</style><div style="overflow:hidden;">

Loading…
Cancel
Save