e-virt-table 0.0.14 → 0.0.15
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.
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +5 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/lib/Editor.js +7 -2
- package/dist/lib/Editor.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -5082,8 +5082,11 @@ class qi {
|
|
|
5082
5082
|
startEditByInput(t) {
|
|
5083
5083
|
if (t.editorType !== "text")
|
|
5084
5084
|
return;
|
|
5085
|
-
const e = t.getValue(), { width: i
|
|
5086
|
-
|
|
5085
|
+
const e = t.getValue(), { width: i } = t, s = t.getDrawX();
|
|
5086
|
+
let o = t.getDrawY(), { height: r } = t;
|
|
5087
|
+
t.height > this.ctx.body.visibleHeight && (r = this.ctx.body.visibleHeight, o = this.ctx.header.visibleHeight);
|
|
5088
|
+
const { CELL_PADDING: n } = this.ctx.config;
|
|
5089
|
+
this.editorEl.style.left = `${s}px`, this.editorEl.style.top = `${o}px`, this.inputEl.style.minWidth = `${i - 1}px`, this.inputEl.style.minHeight = `${r - 1}px`, this.inputEl.style.padding = `${n}px`, e !== null && (this.inputEl.textContent = e), this.inputEl.focus();
|
|
5087
5090
|
const l = window.getSelection();
|
|
5088
5091
|
l == null || l.selectAllChildren(this.inputEl), l == null || l.collapseToEnd();
|
|
5089
5092
|
}
|