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
3a5bcdf8
"ppstructure/vscode:/vscode.git/clone" did not exist on "82e1a8bc1e32dcf856f9738ac0742cf29fdab047"
Commit
3a5bcdf8
authored
Mar 30, 2023
by
pythongosssss
Browse files
Formatting
parent
c93dc2fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
web/scripts/ui.js
web/scripts/ui.js
+4
-4
No files found.
web/scripts/ui.js
View file @
3a5bcdf8
...
@@ -57,11 +57,11 @@ function dragElement(dragEl, settings) {
...
@@ -57,11 +57,11 @@ function dragElement(dragEl, settings) {
function
ensureInBounds
()
{
function
ensureInBounds
()
{
if
(
dragEl
.
classList
.
contains
(
"
comfy-menu-manual-pos
"
))
{
if
(
dragEl
.
classList
.
contains
(
"
comfy-menu-manual-pos
"
))
{
newPosX
=
Math
.
min
(
document
.
body
.
clientWidth
-
dragEl
.
clientWidth
,
Math
.
max
(
0
,
dragEl
.
offsetLeft
));
newPosX
=
Math
.
min
(
document
.
body
.
clientWidth
-
dragEl
.
clientWidth
,
Math
.
max
(
0
,
dragEl
.
offsetLeft
));
newPosY
=
Math
.
min
(
document
.
body
.
clientHeight
-
dragEl
.
clientHeight
,
Math
.
max
(
0
,
dragEl
.
offsetTop
));
newPosY
=
Math
.
min
(
document
.
body
.
clientHeight
-
dragEl
.
clientHeight
,
Math
.
max
(
0
,
dragEl
.
offsetTop
));
positionElement
();
positionElement
();
}
}
}
}
function
positionElement
()
{
function
positionElement
()
{
...
...
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