|
|
@ -21,13 +21,29 @@ BI.HorizontalStickyLayout = BI.inherit(BI.FlexHorizontalLayout, { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (columnSize !== "fill") { |
|
|
|
if (columnSize !== "fill") { |
|
|
|
var firstItemFill = o.columnSize[0] === "fill" || o.items[0].width === "fill"; |
|
|
|
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({ |
|
|
|
w.element.css({ |
|
|
|
position: "sticky", |
|
|
|
position: "sticky", |
|
|
|
zIndex: 1, |
|
|
|
zIndex: 1, |
|
|
|
left: firstItemFill ? "" : 0, |
|
|
|
right: 0 |
|
|
|
right: firstItemFill ? 0 : "" |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
w.element.css({ |
|
|
|
w.element.css({ |
|
|
|
overflow: "" |
|
|
|
overflow: "" |
|
|
|