@alfresco/adf-core 9.1.0-17097112837 → 9.1.0-17125993488

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.
@@ -26636,7 +26636,9 @@ 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 === chips.length - 1 && width <= containerWidth) ? containerWidth : containerWidth - viewMoreBtnWidth;
26639
+ const availableSpace = (index === chips.length - 1 && width <= containerWidth) || this.paginationData
26640
+ ? containerWidth
26641
+ : containerWidth - viewMoreBtnWidth;
26640
26642
  if (availableSpace >= width - chipMargin) {
26641
26643
  chipsToDisplay = (this.paginationData ? chipsToDisplay : index) + 1;
26642
26644
  lastIndex++;