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.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, height: s } = t, o = t.getDrawX(), r = t.getDrawY(), { CELL_PADDING: n } = this.ctx.config;
5086
- this.editorEl.style.left = `${o}px`, this.editorEl.style.top = `${r}px`, this.inputEl.style.minWidth = `${i - 1}px`, this.inputEl.style.minHeight = `${s - 1}px`, this.inputEl.style.padding = `${n}px`, e !== null && (this.inputEl.textContent = e), this.inputEl.focus();
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
  }