efront 4.11.8 → 4.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/coms/zimoli/tree.js
CHANGED
|
@@ -323,13 +323,24 @@ function tree() {
|
|
|
323
323
|
var limit = useLimit && top + h > limitHeight;
|
|
324
324
|
css(p, {
|
|
325
325
|
position: 'sticky',
|
|
326
|
+
zIndex: 2,
|
|
326
327
|
top: limit ? limitHeight - h : top, zIndex: 3 - limit
|
|
327
328
|
});
|
|
328
329
|
top += h;
|
|
329
330
|
});
|
|
330
331
|
stickys.top = top;
|
|
331
332
|
}
|
|
333
|
+
var unSticky = function () {
|
|
334
|
+
stickys.forEach(s => {
|
|
335
|
+
css(s, {
|
|
336
|
+
position: '',
|
|
337
|
+
top: '',
|
|
338
|
+
zIndex: 1
|
|
339
|
+
})
|
|
340
|
+
})
|
|
341
|
+
}
|
|
332
342
|
var refresh = function () {
|
|
343
|
+
unSticky();
|
|
333
344
|
var index = banner.index();
|
|
334
345
|
var needremoves = dom.map(d => d.$target).filter(d => !!d);
|
|
335
346
|
dom = getArrayFromTree(root, banner.joined);
|