forked from extern/egroupware
DOM Nodes are now reinserted at their correct place after having been detached (caused bug whenn calling 'showMessage' on an element which is inside a vbox)
This commit is contained in:
parent
5c4c175ce2
commit
f370f5f8ab
@ -150,7 +150,16 @@ var et2_DOMWidget = et2_widget.extend(et2_IDOMNode, {
|
|||||||
node = this._surroundingsMgr.getDOMNode(node);
|
node = this._surroundingsMgr.getDOMNode(node);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Append this node at its index
|
||||||
|
var idx = this._parent ? this._parent.getChildren().indexOf(this) : -1;
|
||||||
|
if (idx < 0 || idx >= this.parentNode.childNodes.length - 1)
|
||||||
|
{
|
||||||
this.parentNode.appendChild(node);
|
this.parentNode.appendChild(node);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.parentNode.insertBefore(node, this.parentNode.childNodes[idx]);
|
||||||
|
}
|
||||||
|
|
||||||
// Store the currently attached nodes
|
// Store the currently attached nodes
|
||||||
this._attachSet = {
|
this._attachSet = {
|
||||||
|
Loading…
Reference in New Issue
Block a user