|
|
@ -12258,15 +12258,20 @@ BI.FloatCenterAdaptLayout = BI.inherit(BI.Layout, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
mounted: function () { |
|
|
|
mounted: function () { |
|
|
|
|
|
|
|
var self = this; |
|
|
|
var width = this.left.element.outerWidth(), |
|
|
|
var width = this.left.element.outerWidth(), |
|
|
|
height = this.left.element.outerHeight(); |
|
|
|
height = this.left.element.outerHeight(); |
|
|
|
this.left.element.width(width).height(height).css("float", "none"); |
|
|
|
this.left.element.width(width).height(height).css("float", "none"); |
|
|
|
|
|
|
|
BI.remove(this._children, function (i, wi) { |
|
|
|
|
|
|
|
if (wi === self.container) { |
|
|
|
|
|
|
|
delete self._children[i]; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: "bi.center_adapt", |
|
|
|
type: "bi.center_adapt", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
items: [this.left] |
|
|
|
items: [this.left] |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.removeWidget(this.container); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
stroke: function (items) { |
|
|
|
stroke: function (items) { |
|
|
@ -12321,15 +12326,20 @@ BI.FloatHorizontalLayout = BI.inherit(BI.Layout, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
mounted: function () { |
|
|
|
mounted: function () { |
|
|
|
|
|
|
|
var self = this; |
|
|
|
var width = this.left.element.width(), |
|
|
|
var width = this.left.element.width(), |
|
|
|
height = this.left.element.height(); |
|
|
|
height = this.left.element.height(); |
|
|
|
this.left.element.width(width).height(height).css("float", "none"); |
|
|
|
this.left.element.width(width).height(height).css("float", "none"); |
|
|
|
|
|
|
|
BI.remove(this._children, function (i, wi) { |
|
|
|
|
|
|
|
if (wi === self.container) { |
|
|
|
|
|
|
|
delete self._children[i]; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: "bi.horizontal_auto", |
|
|
|
type: "bi.horizontal_auto", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
items: [this.left] |
|
|
|
items: [this.left] |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.removeWidget(this.container); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_addElement: function (i, item) { |
|
|
|
_addElement: function (i, item) { |
|
|
|