mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-02 03:30:04 +00:00
fixed bug in context menu when fullscreen
This commit is contained in:
@@ -213,10 +213,6 @@ Editor.prototype.onFullscreenButton = function() {
|
||||
this.goFullscreen();
|
||||
};
|
||||
|
||||
Editor.prototype.onMaximizeButton = function() {
|
||||
this.maximize();
|
||||
};
|
||||
|
||||
Editor.prototype.addMiniWindow = function(w, h) {
|
||||
var miniwindow = document.createElement("div");
|
||||
miniwindow.className = "litegraph miniwindow";
|
||||
|
||||
@@ -10253,7 +10253,11 @@ LGraphNode.prototype.executeAction = function(action)
|
||||
if (!root_document) {
|
||||
root_document = document;
|
||||
}
|
||||
root_document.body.appendChild(root);
|
||||
|
||||
if( root_document.fullscreenElement )
|
||||
root_document.fullscreenElement.appendChild(root);
|
||||
else
|
||||
root_document.body.appendChild(root);
|
||||
|
||||
//compute best position
|
||||
var left = options.left || 0;
|
||||
|
||||
Reference in New Issue
Block a user