|
|
@ -10,7 +10,7 @@ BI.FlexHorizontalLayout = BI.inherit(BI.Layout, { |
|
|
|
return BI.extend(BI.FlexHorizontalLayout.superclass.props.apply(this, arguments), { |
|
|
|
return BI.extend(BI.FlexHorizontalLayout.superclass.props.apply(this, arguments), { |
|
|
|
baseCls: "bi-f-h", |
|
|
|
baseCls: "bi-f-h", |
|
|
|
verticalAlign: BI.VerticalAlign.Top, |
|
|
|
verticalAlign: BI.VerticalAlign.Top, |
|
|
|
horizontalAlign: BI.HorizontalAlign.Left,// 如果只有一个子元素且想让该子元素横向撑满,设置成Stretch
|
|
|
|
horizontalAlign: BI.HorizontalAlign.Left, // 如果只有一个子元素且想让该子元素横向撑满,设置成Stretch
|
|
|
|
columnSize: [], |
|
|
|
columnSize: [], |
|
|
|
scrollx: true, |
|
|
|
scrollx: true, |
|
|
|
hgap: 0, |
|
|
|
hgap: 0, |
|
|
@ -37,7 +37,7 @@ BI.FlexHorizontalLayout = BI.inherit(BI.Layout, { |
|
|
|
_addElement: function (i, item) { |
|
|
|
_addElement: function (i, item) { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
var w = BI.FlexHorizontalLayout.superclass._addElement.apply(this, arguments); |
|
|
|
var w = BI.FlexHorizontalLayout.superclass._addElement.apply(this, arguments); |
|
|
|
var columnSize = o.columnSize.length > 0 ? o.columnSize[i] : item.width; |
|
|
|
var columnSize = o.columnSize.length > 0 ? o.columnSize[i] : item.width >= 1 ? "" : item.width; |
|
|
|
w.element.css({ |
|
|
|
w.element.css({ |
|
|
|
position: "relative" |
|
|
|
position: "relative" |
|
|
|
}); |
|
|
|
}); |
|
|
|