|
|
|
@ -21,13 +21,29 @@ BI.HorizontalStickyLayout = BI.inherit(BI.FlexHorizontalLayout, {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (columnSize !== "fill") { |
|
|
|
|
var firstItemFill = o.columnSize[0] === "fill" || o.items[0].width === "fill"; |
|
|
|
|
w.element.css({ |
|
|
|
|
position: "sticky", |
|
|
|
|
zIndex: 1, |
|
|
|
|
left: firstItemFill ? "" : 0, |
|
|
|
|
right: firstItemFill ? 0 : "" |
|
|
|
|
var fillIndex; |
|
|
|
|
BI.count(0, o.items.length - 1, index => { |
|
|
|
|
if (BI.isNotNull(fillIndex)) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if ((o.columnSize[index] === "fill" || o.items[index].width === "fill")) { |
|
|
|
|
fillIndex = index; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
if (fillIndex > i) { |
|
|
|
|
w.element.css({ |
|
|
|
|
position: "sticky", |
|
|
|
|
zIndex: 1, |
|
|
|
|
left: 0, |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
w.element.css({ |
|
|
|
|
position: "sticky", |
|
|
|
|
zIndex: 1, |
|
|
|
|
right: 0 |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
w.element.css({ |
|
|
|
|
overflow: "" |
|
|
|
|