dmn-js-shared
Advanced tools
Comparing version 9.3.1 to 9.3.2
@@ -187,13 +187,27 @@ import { createVNode } from "inferno"; | ||
var optionsBounds = this.getOptionsBounds(); | ||
assign(this._portalEl.style, optionsBounds); | ||
} | ||
}, { | ||
key: "getOptionsBounds", | ||
value: function getOptionsBounds() { | ||
var container = this.renderer.getContainer(); | ||
var _container$getBoundin = container.getBoundingClientRect(), | ||
containerTop = _container$getBoundin.top, | ||
containerLeft = _container$getBoundin.left; | ||
var _this$inputNode$getBo = this.inputNode.getBoundingClientRect(), | ||
top = _this$inputNode$getBo.top, | ||
left = _this$inputNode$getBo.left, | ||
inputTop = _this$inputNode$getBo.top, | ||
inputLeft = _this$inputNode$getBo.left, | ||
width = _this$inputNode$getBo.width, | ||
height = _this$inputNode$getBo.height; | ||
assign(this._portalEl.style, { | ||
top: "".concat(top + height, "px"), | ||
var top = inputTop + height - containerTop + container.scrollTop; | ||
var left = inputLeft - containerLeft + container.scrollLeft; | ||
return { | ||
top: "".concat(top, "px"), | ||
left: "".concat(left, "px"), | ||
width: "".concat(width, "px") | ||
}); | ||
}; | ||
} | ||
@@ -200,0 +214,0 @@ }, { |
{ | ||
"name": "dmn-js-shared", | ||
"description": "Shared components used by dmn-js", | ||
"version": "9.3.1", | ||
"version": "9.3.2", | ||
"scripts": { | ||
@@ -34,3 +34,3 @@ "test": "karma start", | ||
}, | ||
"gitHead": "40c3c25c79a3f7ba60f8a7166dd54279dafb9f5f" | ||
"gitHead": "f1a63bb69afc2b60facabde29bd5dacac02d2cf4" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
266871
3008