dock-spawn-ts
Advanced tools
Comparing version 2.523.1 to 2.523.2
@@ -304,3 +304,3 @@ import { Utils } from "./Utils.js"; | ||
const rootRect = this.dockManager.config.dialogRootElement.getBoundingClientRect(); | ||
this.elementContentContainer.style.left = (rect.x /*- rootRect.x*/) + 'px'; | ||
this.elementContentContainer.style.left = (rect.x - rootRect.x) + 'px'; | ||
this.elementContentContainer.style.top = (rect.y - rootRect.y) + 'px'; | ||
@@ -311,6 +311,5 @@ this.elementContentContainer.style.width = rect.width + 'px'; | ||
setDialogPosition(x, y) { | ||
const rootRect = this.dockManager.config.dialogRootElement.getBoundingClientRect(); | ||
this.elementContentContainer.style.left = (x - rootRect.x) + 'px'; | ||
this.elementContentContainer.style.left = x + 'px'; | ||
//todo, 25px if it is a dialog, is it always 25px? where do we know... | ||
this.elementContentContainer.style.top = (y + this.elementTitle.clientHeight /*- rootRect.y*/) + 'px'; | ||
this.elementContentContainer.style.top = (y + this.elementTitle.clientHeight) + 'px'; | ||
} | ||
@@ -317,0 +316,0 @@ setVisible(isVisible) { |
{ | ||
"name": "dock-spawn-ts", | ||
"version": "2.523.1", | ||
"version": "2.523.2", | ||
"description": "DockSpawn Typescript Version", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -386,3 +386,3 @@ import { DockManager } from "./DockManager.js"; | ||
const rootRect = this.dockManager.config.dialogRootElement.getBoundingClientRect(); | ||
this.elementContentContainer.style.left = (rect.x /*- rootRect.x*/) + 'px'; | ||
this.elementContentContainer.style.left = (rect.x - rootRect.x) + 'px'; | ||
this.elementContentContainer.style.top = (rect.y - rootRect.y) + 'px'; | ||
@@ -394,6 +394,5 @@ this.elementContentContainer.style.width = rect.width + 'px'; | ||
setDialogPosition(x: number, y: number) { | ||
const rootRect = this.dockManager.config.dialogRootElement.getBoundingClientRect(); | ||
this.elementContentContainer.style.left = (x - rootRect.x) + 'px'; | ||
this.elementContentContainer.style.left = x + 'px'; | ||
//todo, 25px if it is a dialog, is it always 25px? where do we know... | ||
this.elementContentContainer.style.top = (y + this.elementTitle.clientHeight /*- rootRect.y*/) + 'px'; | ||
this.elementContentContainer.style.top = (y + this.elementTitle.clientHeight) + 'px'; | ||
} | ||
@@ -400,0 +399,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
760354
10576