@inweb/markup 26.10.1 → 26.10.3

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.
@@ -1434,16 +1434,17 @@ class KonvaMarkup {
1434
1434
  this._markupContainer = document.createElement("div");
1435
1435
  this._markupContainer.id = "markup-container";
1436
1436
  this._markupContainer.style.position = "absolute";
1437
- this._markupContainer.style.top = "0px";
1438
- this._markupContainer.style.left = "0px";
1439
1437
  this._markupContainer.style.outline = "0px";
1440
1438
  this._markupContainer.style.pointerEvents = "none";
1441
1439
  const parentDiv = this._container.parentElement;
1442
1440
  parentDiv.appendChild(this._markupContainer);
1443
- if (viewer)
1441
+ if (viewer) {
1444
1442
  this._viewer.addEventListener("resize", this.resizeViewer);
1445
- else
1443
+ }
1444
+ else {
1446
1445
  this._resizeObserver = new ResizeObserver(debounce(this.resizeContainer, 100));
1446
+ this._resizeObserver.observe(parentDiv);
1447
+ }
1447
1448
  this._markupColor.setColor(255, 0, 0);
1448
1449
  this.initializeKonva();
1449
1450
  if (this._viewer) {