@node-projects/web-component-designer 0.1.77 → 0.1.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -99,10 +99,10 @@ export function getElementsWindowOffsetWithoutSelfAndParentTransformations(eleme
99
99
  element = element.ownerSVGElement;
100
100
  }
101
101
  else if (element instanceof HTMLBodyElement) {
102
- element = element.parentElement;
102
+ element = element.parentElement ? element.parentElement : element.getRootNode().host;
103
103
  }
104
104
  else if (element instanceof HTMLHtmlElement) {
105
- element = element.parentElement;
105
+ element = element.parentElement ? element.parentElement : element.getRootNode().host;
106
106
  }
107
107
  else {
108
108
  const currLeft = element.offsetLeft;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "description": "A UI designer for Polymer apps",
3
3
  "name": "@node-projects/web-component-designer",
4
- "version": "0.1.77",
4
+ "version": "0.1.78",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "author": "jochen.kuehner@gmx.de",