@everchron/ec-shards 9.17.9 → 9.17.11
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/ec-shards.js +5 -1
- package/dist/ec-shards.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/ec-shards.js
CHANGED
|
@@ -11102,7 +11102,7 @@ const I_ = /* @__PURE__ */ y(uh, [["render", fh]]), gh = {
|
|
|
11102
11102
|
this.currentIndex > 0 && (this.direction = "left", this.previousIndex = this.currentIndex, this.currentIndex--, this.$emit("update:index", this.currentIndex));
|
|
11103
11103
|
},
|
|
11104
11104
|
enter(e) {
|
|
11105
|
-
const s = e.
|
|
11105
|
+
const s = e.closest(".inplace-container"), t = this.slotHeights[this.currentSlot] || e.scrollHeight;
|
|
11106
11106
|
s.style.height = `${t}px`;
|
|
11107
11107
|
},
|
|
11108
11108
|
goTo(e) {
|
|
@@ -11117,6 +11117,10 @@ const I_ = /* @__PURE__ */ y(uh, [["render", fh]]), gh = {
|
|
|
11117
11117
|
},
|
|
11118
11118
|
handleResize() {
|
|
11119
11119
|
this.calculateAllHeights();
|
|
11120
|
+
},
|
|
11121
|
+
recalculateCurrentHeight() {
|
|
11122
|
+
const e = this.$el.querySelector(".inplace-container"), s = e.querySelector(`.inplace-item[data-slot="${this.currentSlot}"]`);
|
|
11123
|
+
s && (this.slotHeights[this.currentSlot] = s.scrollHeight, e.style.height = `${this.slotHeights[this.currentSlot]}px`);
|
|
11120
11124
|
}
|
|
11121
11125
|
}
|
|
11122
11126
|
}, mh = { class: "ecs-inplace" }, hh = ["data-slot"];
|