Skip to content

Commit

Permalink
mask editor bugfix
Browse files Browse the repository at this point in the history
- Addressing the issue where an unnecessary hidden panel disrupts the drawing.
  • Loading branch information
ltdrdata committed Dec 10, 2023
1 parent 340177e commit 6903308
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions web/extensions/core/maskeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,6 @@ class MaskEditorDialog extends ComfyDialog {

// If it is specified as relative, using it only as a hidden placeholder for padding is recommended
// to prevent anomalies where it exceeds a certain size and goes outside of the window.
var placeholder = document.createElement("div");
placeholder.style.position = "relative";
placeholder.style.height = "50px";

var bottom_panel = document.createElement("div");
bottom_panel.style.position = "absolute";
bottom_panel.style.bottom = "0px";
Expand All @@ -192,7 +188,6 @@ class MaskEditorDialog extends ComfyDialog {
this.brush = brush;
this.element.appendChild(imgCanvas);
this.element.appendChild(maskCanvas);
this.element.appendChild(placeholder); // must below z-index than bottom_panel to avoid covering button
this.element.appendChild(bottom_panel);
document.body.appendChild(brush);

Expand All @@ -218,7 +213,6 @@ class MaskEditorDialog extends ComfyDialog {

this.element.appendChild(imgCanvas);
this.element.appendChild(maskCanvas);
this.element.appendChild(placeholder); // must below z-index than bottom_panel to avoid covering button
this.element.appendChild(bottom_panel);

bottom_panel.appendChild(clearButton);
Expand Down

0 comments on commit 6903308

Please sign in to comment.