Skip to content

Commit

Permalink
Merge pull request #427 from chiefcll/patch-4
Browse files Browse the repository at this point in the history
update lightning inspector root div offset - Fixes #426
  • Loading branch information
erikhaandrikman authored Oct 31, 2022
2 parents 35dc085 + 11713a0 commit 3d2d7e3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## v2.8.1

*31 oct 2022*

- Fixed Lightning inspector (#427)

## v2.8.0

*20 oct 2022*
Expand Down
2 changes: 1 addition & 1 deletion devtools/lightning-inspect.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "Metrological, Bas van Meurs <[email protected]>",
"name": "@lightningjs/core",
"version": "2.8.0",
"version": "2.8.1",
"license": "Apache-2.0",
"main": "dist/lightning.js",
"module": "index.js",
Expand Down

0 comments on commit 3d2d7e3

Please sign in to comment.