Browse Source

Pull request #2271: 无JIRA fix: nextSibling判断

Merge in VISUAL/fineui from ~DAILER/fineui:master to master

* commit '3f7c656354c510989e6caea19e3f66bd58744485':
  无JIRA fix: nextSibling判断
es6
Dailer 3 years ago
parent
commit
f10440d993
  1. 2
      src/core/wrapper/layout.js

2
src/core/wrapper/layout.js

@ -241,7 +241,7 @@ BI.Layout = BI.inherit(BI.Widget, {
// 需要有个地方临时存一下新建的组件,否则如果直接使用newIndex的话,newIndex位置的元素可能会被用到
this._children[this._getChildName(newIndex) + "-temp"] = w;
var nextSibling = del.element.next();
if (nextSibling) {
if (nextSibling.length > 0) {
BI.Widget._renderEngine.createElement(nextSibling).before(w.element);
} else {
w.element.appendTo(this._getWrapper());

Loading…
Cancel
Save