fixed bug in context menu when fullscreen

This commit is contained in:
tamat
2019-10-21 16:35:52 +02:00
parent be678adc0e
commit 67ba69a14f
5 changed files with 233 additions and 228 deletions

View File

@@ -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";

View File

@@ -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;