diff --git a/package-lock.json b/package-lock.json index be76364..79275b7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "vizart-core", - "version": "2.0.3", + "version": "2.0.4", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 5968267..e8a76a3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vizart-core", - "version": "2.0.3", + "version": "2.0.4", "description": "Core Components for VizArt", "main": "dist/vizart-core.js", "module": "dist/vizart-core.esm.js", diff --git a/src/api/renderCanvas.js b/src/api/renderCanvas.js index 342be0f..2c24a10 100644 --- a/src/api/renderCanvas.js +++ b/src/api/renderCanvas.js @@ -20,6 +20,7 @@ const apiRender = state => ({ const frontCanvas = select(containerId) .append('canvas') .attr('id', frontCanvasId) + .style('position', 'absolute') .style('display', 'block') .style('width', opts.chart.innerWidth + 'px') .style('height', opts.chart.innerHeight + 'px') @@ -33,6 +34,7 @@ const apiRender = state => ({ const hiddenCanvas = select(containerId) .append('canvas') .attr('id', hiddenCanvasId) + .style('position', 'absolute') .style('display', 'none') .style('width', opts.chart.innerWidth + 'px') .style('height', opts.chart.innerHeight + 'px')