@vscode/markdown-editor 0.0.2-118 → 0.0.2-119
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/README.md +23 -4
- package/dist/index.js +122 -119
- package/dist/index.js.map +1 -1
- package/dist/web-editors.js +2 -2
- package/dist/web-editors.js.map +1 -1
- package/package.json +2 -2
- package/src/view/editor.css +11 -6
package/dist/web-editors.js
CHANGED
|
@@ -7217,7 +7217,7 @@ class Nl {
|
|
|
7217
7217
|
!n || n.editor !== t || t.hasFocus() || n.unbind();
|
|
7218
7218
|
}
|
|
7219
7219
|
park(t) {
|
|
7220
|
-
t.style.top = "-100000px", t.style.left = "
|
|
7220
|
+
t.style.top = "-100000px", t.style.left = "auto", t.style.right = "100%";
|
|
7221
7221
|
}
|
|
7222
7222
|
dispose() {
|
|
7223
7223
|
for (const t of this._frames)
|
|
@@ -7283,7 +7283,7 @@ class Cl {
|
|
|
7283
7283
|
if (this.editor !== t)
|
|
7284
7284
|
return;
|
|
7285
7285
|
const n = t.element.getBoundingClientRect(), r = this._frameRoot.getBoundingClientRect(), o = this._frameRoot === document.body, i = o ? n.top + window.scrollY : n.top - r.top + this._frameRoot.scrollTop, s = o ? n.left + window.scrollX : n.left - r.left + this._frameRoot.scrollLeft;
|
|
7286
|
-
this.iframe.style.top = `${i}px`, this.iframe.style.left = `${s}px`, this.iframe.style.width = `${n.width}px`;
|
|
7286
|
+
this.iframe.style.top = `${i}px`, this.iframe.style.left = `${s}px`, this.iframe.style.right = "", this.iframe.style.width = `${n.width}px`;
|
|
7287
7287
|
}
|
|
7288
7288
|
dispose() {
|
|
7289
7289
|
this._disposed || (this._disposed = !0, this.unbind(), window.removeEventListener("message", this._onWindowMessage), this._host?.dispose(), this._transport?.dispose(), this._hostTransport?.dispose(), this.iframe.remove());
|