@alfresco/adf-core 9.1.0-17090212600 → 9.1.0-17097112837
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/fesm2022/adf-core.mjs
CHANGED
|
@@ -26636,7 +26636,7 @@ class DynamicChipListComponent {
|
|
|
26636
26636
|
do {
|
|
26637
26637
|
chipsWidth = Math.max(chips.reduce((width, val, index) => {
|
|
26638
26638
|
width += val._elementRef.nativeElement.getBoundingClientRect().width + chipMargin;
|
|
26639
|
-
const availableSpace = (index
|
|
26639
|
+
const availableSpace = (index === chips.length - 1 && width <= containerWidth) ? containerWidth : containerWidth - viewMoreBtnWidth;
|
|
26640
26640
|
if (availableSpace >= width - chipMargin) {
|
|
26641
26641
|
chipsToDisplay = (this.paginationData ? chipsToDisplay : index) + 1;
|
|
26642
26642
|
lastIndex++;
|