mirror of
https://github.com/overte-org/overte.git
synced 2025-08-16 21:54:23 +02:00
Improve child removal logic for FloatingUIPanels.
This commit is contained in:
parent
eab35d03d4
commit
5778502c54
1 changed files with 1 additions and 3 deletions
|
@ -448,9 +448,7 @@
|
|||
that.prototype.removeChild = function(child) {
|
||||
var i = this._children.indexOf(child);
|
||||
if (i >= 0) {
|
||||
if (child instanceof Overlay || child instanceof FloatingUIPanel) {
|
||||
Overlays.setAttachedPanel(child._id, 0);
|
||||
}
|
||||
Overlays.setAttachedPanel(child._id, 0);
|
||||
this._children.splice(i, 1);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue