mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-24 08:44:06 +00:00
move from resize observer to selection toolbox bounds
This commit is contained in:
@@ -72,7 +72,7 @@ export function useSelectionToolboxPosition(
|
||||
|
||||
worldPosition.value = {
|
||||
x: unionBounds.x + unionBounds.width / 2,
|
||||
y: unionBounds.y
|
||||
y: unionBounds.y - 10
|
||||
}
|
||||
|
||||
updateTransform()
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
*/
|
||||
import { getCurrentInstance, onMounted, onUnmounted } from 'vue'
|
||||
|
||||
import { LiteGraph } from '@/lib/litegraph/src/litegraph'
|
||||
import { layoutStore } from '@/renderer/core/layout/store/layoutStore'
|
||||
import type { Bounds, NodeId } from '@/renderer/core/layout/types'
|
||||
|
||||
@@ -82,7 +81,7 @@ const resizeObserver = new ResizeObserver((entries) => {
|
||||
|
||||
const bounds: Bounds = {
|
||||
x: rect.left,
|
||||
y: rect.top - LiteGraph.NODE_TITLE_HEIGHT,
|
||||
y: rect.top,
|
||||
width,
|
||||
height: height
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user