|
|
@ -41,10 +41,12 @@ BI.FloatAbsoluteLeftRightVerticalAdaptLayout = BI.inherit(BI.Layout, { |
|
|
|
var rightItems = o.items.right || []; |
|
|
|
var rightItems = o.items.right || []; |
|
|
|
leftItems = BI.map(leftItems, function (i, item) { |
|
|
|
leftItems = BI.map(leftItems, function (i, item) { |
|
|
|
var el = BI.stripEL(item); |
|
|
|
var el = BI.stripEL(item); |
|
|
|
if(BI.isWidget(el)){ |
|
|
|
if (o.verticalAlign === BI.VerticalAlign.Middle) { |
|
|
|
el.element.addClass("bi-abs-c-y-item"); |
|
|
|
if (BI.isWidget(el)) { |
|
|
|
} else { |
|
|
|
el.element.addClass("bi-abs-c-y-item"); |
|
|
|
el.cls = (el.cls || "") + "bi-abs-c-y-item"; |
|
|
|
} else { |
|
|
|
|
|
|
|
el.cls = (el.cls || "") + "bi-abs-c-y-item"; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
var json = { |
|
|
|
var json = { |
|
|
|
el: el, |
|
|
|
el: el, |
|
|
@ -66,10 +68,12 @@ BI.FloatAbsoluteLeftRightVerticalAdaptLayout = BI.inherit(BI.Layout, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
rightItems = BI.map(rightItems, function (i, item) { |
|
|
|
rightItems = BI.map(rightItems, function (i, item) { |
|
|
|
var el = BI.stripEL(item); |
|
|
|
var el = BI.stripEL(item); |
|
|
|
if(BI.isWidget(el)){ |
|
|
|
if (o.verticalAlign === BI.VerticalAlign.Middle) { |
|
|
|
el.element.addClass("bi-abs-c-y-item"); |
|
|
|
if (BI.isWidget(el)) { |
|
|
|
} else { |
|
|
|
el.element.addClass("bi-abs-c-y-item"); |
|
|
|
el.cls = (el.cls || "") + "bi-abs-c-y-item"; |
|
|
|
} else { |
|
|
|
|
|
|
|
el.cls = (el.cls || "") + "bi-abs-c-y-item"; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
var json = { |
|
|
|
var json = { |
|
|
|
el: el, |
|
|
|
el: el, |
|
|
@ -116,7 +120,7 @@ BI.FloatAbsoluteRightVerticalAdaptLayout = BI.inherit(BI.Layout, { |
|
|
|
items: [], |
|
|
|
items: [], |
|
|
|
lgap: 0, |
|
|
|
lgap: 0, |
|
|
|
rgap: 0, |
|
|
|
rgap: 0, |
|
|
|
hgap: 0, |
|
|
|
hgap: 0 |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
render: function () { |
|
|
|
render: function () { |
|
|
@ -141,11 +145,11 @@ BI.FloatAbsoluteRightVerticalAdaptLayout = BI.inherit(BI.Layout, { |
|
|
|
|
|
|
|
|
|
|
|
_formatItems: function (items) { |
|
|
|
_formatItems: function (items) { |
|
|
|
return BI.map(items, function (i, item) { |
|
|
|
return BI.map(items, function (i, item) { |
|
|
|
if(!item || BI.isEmptyObject(item)){ |
|
|
|
if (!item || BI.isEmptyObject(item)) { |
|
|
|
return item; |
|
|
|
return item; |
|
|
|
} |
|
|
|
} |
|
|
|
var el = BI.stripEL(item); |
|
|
|
var el = BI.stripEL(item); |
|
|
|
if(BI.isWidget(el)){ |
|
|
|
if (BI.isWidget(el)) { |
|
|
|
el.element.addClass("bi-abs-c-y-item"); |
|
|
|
el.element.addClass("bi-abs-c-y-item"); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
el.cls = (el.cls || "") + "bi-abs-c-y-item"; |
|
|
|
el.cls = (el.cls || "") + "bi-abs-c-y-item"; |
|
|
|