diff --git a/src/ui.js b/src/ui.js index d5b6599..fee5988 100644 --- a/src/ui.js +++ b/src/ui.js @@ -100,7 +100,7 @@ export class Dialog { if (initialMode === 'free') { root.style.bottom = '20px'; - root.style.right = '20px'; + root.style.left = '20px'; if (initialPos.x || initialPos.y) { root.style.transform = `translate(${initialPos.x}px, ${initialPos.y}px)`; } @@ -124,7 +124,7 @@ export class Dialog { this.root.style.right = ''; if (mode === 'free') { this.root.style.bottom = '20px'; - this.root.style.right = '20px'; + this.root.style.left = '20px'; } else if (anchorInfo && anchorInfo.canAnchor) { this._positionAnchored(anchorInfo.rect); } else {