Fix for iframe height.

To close #210
This commit is contained in:
Dave Conway-Jones 2022-10-27 10:41:18 +01:00
parent 13926ef385
commit ac272121d5
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF
4 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,6 @@
### Change Log for Node-RED Worldmap ### 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.2 - Fix for bad handling of mapbox id. Issue #208
- v2.30.1 - Don't resend bounds if not changed. Issue #209 - v2.30.1 - Don't resend bounds if not changed. Issue #209
- v2.30.0 - Add show/hide ruler option. PR #206 - v2.30.0 - Add show/hide ruler option. PR #206

View File

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

View File

@ -1,6 +1,6 @@
{ {
"name": "node-red-contrib-web-worldmap", "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.", "description": "A Node-RED node to provide a web page of a world map for plotting things on.",
"dependencies": { "dependencies": {
"@turf/bezier-spline": "~6.5.0", "@turf/bezier-spline": "~6.5.0",

View File

@ -173,7 +173,7 @@ module.exports = function(RED) {
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; 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)); var url = encodeURI(path.posix.join(RED.settings.httpNodeRoot||RED.settings.httpRoot,config.path));
if (config.layer === "MB3d") { url += "/index3d.html"; } if (config.layer === "MB3d") { url += "/index3d.html"; }
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;">