@bebranded/bb-contents 1.1.13 → 1.1.14
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/bb-contents.js +4 -17
- package/package.json +1 -1
package/bb-contents.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* BeBranded Contents
|
|
3
3
|
* Contenus additionnels français pour Webflow
|
|
4
|
-
* @version 1.1.
|
|
4
|
+
* @version 1.1.14
|
|
5
5
|
* @author BeBranded
|
|
6
6
|
* @license MIT
|
|
7
7
|
* @website https://www.bebranded.xyz
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
'use strict';
|
|
11
11
|
|
|
12
12
|
// Version du script
|
|
13
|
-
const BB_CONTENTS_VERSION = '1.1.
|
|
13
|
+
const BB_CONTENTS_VERSION = '1.1.14';
|
|
14
14
|
|
|
15
15
|
// Créer l'objet temporaire pour la configuration si il n'existe pas
|
|
16
16
|
if (!window._bbContentsConfig) {
|
|
@@ -309,6 +309,7 @@
|
|
|
309
309
|
if (!list) return;
|
|
310
310
|
item.style.overflow = 'visible';
|
|
311
311
|
dropdown.style.overflow = 'visible';
|
|
312
|
+
list.style.zIndex = '10';
|
|
312
313
|
let leaveTimer;
|
|
313
314
|
dropdown.addEventListener('mouseenter', function() {
|
|
314
315
|
clearTimeout(leaveTimer);
|
|
@@ -688,8 +689,7 @@
|
|
|
688
689
|
});
|
|
689
690
|
if (maxHeight === 0) maxHeight = mainBlock.offsetHeight || scrollContainer.offsetHeight;
|
|
690
691
|
if (maxHeight > 0) {
|
|
691
|
-
|
|
692
|
-
mainContainer.style.height = (maxHeight + extraForDropdowns) + 'px';
|
|
692
|
+
mainContainer.style.height = maxHeight + 'px';
|
|
693
693
|
}
|
|
694
694
|
if (hasDropdowns) {
|
|
695
695
|
this._enableMarqueeDropdowns(mainBlock);
|
|
@@ -759,19 +759,6 @@
|
|
|
759
759
|
this._enableMarqueeDropdowns(repeatBlock1);
|
|
760
760
|
this._enableMarqueeDropdowns(repeatBlock2);
|
|
761
761
|
}
|
|
762
|
-
if (!isVertical && hasDropdowns) {
|
|
763
|
-
requestAnimationFrame(function() {
|
|
764
|
-
let items = mainBlock.querySelectorAll('.bb-marquee_item, [role="listitem"]');
|
|
765
|
-
if (items.length === 0) items = mainBlock.querySelectorAll(':scope > *');
|
|
766
|
-
let maxHeight = 0;
|
|
767
|
-
items.forEach(function(item) {
|
|
768
|
-
const h = item.offsetHeight;
|
|
769
|
-
if (h > maxHeight) maxHeight = h;
|
|
770
|
-
});
|
|
771
|
-
if (maxHeight === 0) maxHeight = mainBlock.offsetHeight || scrollContainer.offsetHeight;
|
|
772
|
-
if (maxHeight > 0) mainContainer.style.height = (maxHeight + 280) + 'px';
|
|
773
|
-
});
|
|
774
|
-
}
|
|
775
762
|
const initDelay = isVertical ? 500 : 300;
|
|
776
763
|
setTimeout(() => {
|
|
777
764
|
this.initAnimation(element, scrollContainer, mainBlock, {
|