Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
d66b631d
Commit
d66b631d
authored
Nov 21, 2023
by
comfyanonymous
Browse files
Merge branch 'fix-collapsed-clip' of
https://github.com/pythongosssss/ComfyUI
parents
cd4fc77d
89e31abc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
web/scripts/domWidget.js
web/scripts/domWidget.js
+3
-2
No files found.
web/scripts/domWidget.js
View file @
d66b631d
...
...
@@ -17,13 +17,14 @@ function getClipPath(node, element, elRect) {
const
MARGIN
=
7
;
const
scale
=
app
.
canvas
.
ds
.
scale
;
const
bounding
=
selectedNode
.
getBounding
();
const
intersection
=
intersect
(
{
x
:
elRect
.
x
/
scale
,
y
:
elRect
.
y
/
scale
,
width
:
elRect
.
width
/
scale
,
height
:
elRect
.
height
/
scale
},
{
x
:
selectedNode
.
pos
[
0
]
+
app
.
canvas
.
ds
.
offset
[
0
]
-
MARGIN
,
y
:
selectedNode
.
pos
[
1
]
+
app
.
canvas
.
ds
.
offset
[
1
]
-
LiteGraph
.
NODE_TITLE_HEIGHT
-
MARGIN
,
width
:
selectedNode
.
size
[
0
]
+
MARGIN
+
MARGIN
,
height
:
selectedNode
.
size
[
1
]
+
LiteGraph
.
NODE_TITLE_HEIGHT
+
MARGIN
+
MARGIN
,
width
:
bounding
[
2
]
+
MARGIN
+
MARGIN
,
height
:
bounding
[
3
]
+
MARGIN
+
MARGIN
,
}
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment