"include/ck/utility/array.hpp" did not exist on "51884fc21412b1800bb85b28c0f5a0b651d23cef"
Commit 69033081 authored by Dr.Lt.Data's avatar Dr.Lt.Data
Browse files

mask editor bugfix

- Addressing the issue where an unnecessary hidden panel disrupts the drawing.
parent 340177e6
...@@ -167,10 +167,6 @@ class MaskEditorDialog extends ComfyDialog { ...@@ -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 // 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. // 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"); var bottom_panel = document.createElement("div");
bottom_panel.style.position = "absolute"; bottom_panel.style.position = "absolute";
bottom_panel.style.bottom = "0px"; bottom_panel.style.bottom = "0px";
...@@ -192,7 +188,6 @@ class MaskEditorDialog extends ComfyDialog { ...@@ -192,7 +188,6 @@ class MaskEditorDialog extends ComfyDialog {
this.brush = brush; this.brush = brush;
this.element.appendChild(imgCanvas); this.element.appendChild(imgCanvas);
this.element.appendChild(maskCanvas); this.element.appendChild(maskCanvas);
this.element.appendChild(placeholder); // must below z-index than bottom_panel to avoid covering button
this.element.appendChild(bottom_panel); this.element.appendChild(bottom_panel);
document.body.appendChild(brush); document.body.appendChild(brush);
...@@ -218,7 +213,6 @@ class MaskEditorDialog extends ComfyDialog { ...@@ -218,7 +213,6 @@ class MaskEditorDialog extends ComfyDialog {
this.element.appendChild(imgCanvas); this.element.appendChild(imgCanvas);
this.element.appendChild(maskCanvas); this.element.appendChild(maskCanvas);
this.element.appendChild(placeholder); // must below z-index than bottom_panel to avoid covering button
this.element.appendChild(bottom_panel); this.element.appendChild(bottom_panel);
bottom_panel.appendChild(clearButton); bottom_panel.appendChild(clearButton);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment