Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowcz007 committed Aug 17, 2024
1 parent bfcadde commit ef7035f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/javascript/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function get_position_style (ctx, widget_width, y, node_height) {
transform: transform,
left:
document.querySelector('.comfy-menu').style.display === 'none'
? `60px`
? `${44*ctx.canvas.width/elRect.width }px`
: `0`,
top: `0`,
cursor: 'pointer',
Expand Down
2 changes: 1 addition & 1 deletion web/javascript/utils_mixlab.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ app.registerExtension({
draw (ctx, node, widget_width, y, widget_height) {
Object.assign(
this.div.style,
get_position_style(ctx, widget_width, y, node.size[1])
get_position_style(ctx, widget_width, 24, node.size[1])
)
}
}
Expand Down

0 comments on commit ef7035f

Please sign in to comment.