From 98a4a372d9d8c46b59b70088fedf193b4e76be56 Mon Sep 17 00:00:00 2001 From: Chris Lorenzo Date: Tue, 25 Oct 2022 23:09:02 -0400 Subject: [PATCH 1/3] Fixes #426 --- devtools/lightning-inspect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); From 5feca80a5d7f5b6322233820f1a2b3cd554a935d Mon Sep 17 00:00:00 2001 From: erikhaandrikman Date: Mon, 31 Oct 2022 13:48:43 +0100 Subject: [PATCH 2/3] Bumped to version 2.8.1 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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", From 11713a0d5c136c6802dcb621f1eb73a79303b85b Mon Sep 17 00:00:00 2001 From: erikhaandrikman Date: Mon, 31 Oct 2022 13:51:16 +0100 Subject: [PATCH 3/3] Updated CHANGELOG --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) 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*