mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-01-12 03:54:23 +00:00
set screen when appending a node.
This commit is contained in:
parent
90c441a329
commit
730dd59b39
@ -68,6 +68,7 @@ Node.prototype.insert = function(element, i) {
|
||||
|
||||
element.detach();
|
||||
element.parent = this;
|
||||
element.screen = this.screen;
|
||||
|
||||
if (i === 0) {
|
||||
this.children.unshift(element);
|
||||
|
Loading…
x
Reference in New Issue
Block a user