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
722801ed
Commit
722801ed
authored
Mar 30, 2023
by
pythongosssss
Browse files
Formatting
parent
3a5bcdf8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
web/scripts/ui.js
web/scripts/ui.js
+3
-3
No files found.
web/scripts/ui.js
View file @
722801ed
...
...
@@ -66,7 +66,6 @@ function dragElement(dragEl, settings) {
function
positionElement
()
{
const
halfWidth
=
document
.
body
.
clientWidth
/
2
;
const
anchorRight
=
newPosX
+
dragEl
.
clientWidth
/
2
>
halfWidth
;
// set the element's new position:
...
...
@@ -77,8 +76,9 @@ function dragElement(dragEl, settings) {
dragEl
.
style
.
left
=
newPosX
+
"
px
"
;
dragEl
.
style
.
right
=
"
unset
"
;
}
dragEl
.
style
.
top
=
newPosY
+
"
px
"
;
dragEl
.
style
.
bottom
=
"
unset
"
;
dragEl
.
style
.
top
=
newPosY
+
"
px
"
;
dragEl
.
style
.
bottom
=
"
unset
"
;
if
(
savePos
)
{
localStorage
.
setItem
(
...
...
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