Skip to content

Commit 67ba69a

Browse files
author
tamat
committed
fixed bug in context menu when fullscreen
1 parent be678ad commit 67ba69a

File tree

5 files changed

+233
-228
lines changed

5 files changed

+233
-228
lines changed

build/litegraph.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -10255,7 +10255,11 @@ LGraphNode.prototype.executeAction = function(action)
1025510255
if (!root_document) {
1025610256
root_document = document;
1025710257
}
10258-
root_document.body.appendChild(root);
10258+
10259+
if( root_document.fullscreenElement )
10260+
root_document.fullscreenElement.appendChild(root);
10261+
else
10262+
root_document.body.appendChild(root);
1025910263

1026010264
//compute best position
1026110265
var left = options.left || 0;

0 commit comments

Comments
 (0)