diff --git a/CHANGELOG.md b/CHANGELOG.md index 02cf0c3d..c38dbe09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## v2.8.1 + +*31 oct 2022* + +- Fixed Lightning inspector (#427) + ## v2.8.0 *20 oct 2022* diff --git a/devtools/lightning-inspect.js b/devtools/lightning-inspect.js index 66a99ca6..fd1a9f15 100644 --- a/devtools/lightning-inspect.js +++ b/devtools/lightning-inspect.js @@ -204,7 +204,7 @@ window.attachInspector = function({Application, Element, ElementCore, Stage, Com if (window.ResizeObserver != null) { const resize_ob = new ResizeObserver(function (entries) { - updateRootStyleFromCanvas(entries[0].contentRect); + updateRootStyleFromCanvas(entries[0].target.getBoundingClientRect()); }); // start observing for resize resize_ob.observe(this.stage.getCanvas()); diff --git a/package-lock.json b/package-lock.json index 9a1da913..e98c0da3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@lightningjs/core", - "version": "2.8.0", + "version": "2.8.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@lightningjs/core", - "version": "2.8.0", + "version": "2.8.1", "license": "Apache-2.0", "devDependencies": { "@babel/core": "^7.8.3", diff --git a/package.json b/package.json index ede31b19..34c27b9f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "author": "Metrological, Bas van Meurs ", "name": "@lightningjs/core", - "version": "2.8.0", + "version": "2.8.1", "license": "Apache-2.0", "main": "dist/lightning.js", "module": "index.js",