|
|
@ -34,7 +34,7 @@ BI.FlexVerticalLayout = BI.inherit(BI.Layout, { |
|
|
|
position: "relative" |
|
|
|
position: "relative" |
|
|
|
}); |
|
|
|
}); |
|
|
|
if (o.rowSize[i] !== "auto") { |
|
|
|
if (o.rowSize[i] !== "auto") { |
|
|
|
if (o.verticalAlign === BI.VerticalAlign.Stretch && o.rowSize[i] !== "") { |
|
|
|
if (o.verticalAlign === BI.VerticalAlign.Stretch && o.rowSize[i] === "fill") { |
|
|
|
w.element.addClass("f-f"); |
|
|
|
w.element.addClass("f-f"); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
w.element.addClass("f-s-n"); |
|
|
|
w.element.addClass("f-s-n"); |
|
|
@ -46,6 +46,13 @@ BI.FlexVerticalLayout = BI.inherit(BI.Layout, { |
|
|
|
if (o.rowSize[i] === "fill") { |
|
|
|
if (o.rowSize[i] === "fill") { |
|
|
|
w.element.addClass("f-f"); |
|
|
|
w.element.addClass("f-f"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
w.element.addClass("c-e"); |
|
|
|
|
|
|
|
if (i === 0) { |
|
|
|
|
|
|
|
w.element.addClass("f-c"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (i === o.items.length - 1) { |
|
|
|
|
|
|
|
w.element.addClass("l-c"); |
|
|
|
|
|
|
|
} |
|
|
|
if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) { |
|
|
|
if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) { |
|
|
|
w.element.css({ |
|
|
|
w.element.css({ |
|
|
|
"margin-top": ((i === 0 ? o.vgap : 0) + o.tgap + (item.tgap || 0) + (item.vgap || 0)) / BI.pixRatio + BI.pixUnit |
|
|
|
"margin-top": ((i === 0 ? o.vgap : 0) + o.tgap + (item.tgap || 0) + (item.vgap || 0)) / BI.pixRatio + BI.pixUnit |
|
|
|