mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-9978] DynamicChipListComponent not rendered as expected (#11132)
This commit is contained in:
@@ -179,7 +179,9 @@ export class DynamicChipListComponent implements OnChanges, OnInit, AfterViewIni
|
||||
chips.reduce((width, val, index) => {
|
||||
width += val._elementRef.nativeElement.getBoundingClientRect().width + chipMargin;
|
||||
const availableSpace =
|
||||
(index === chips.length - 1 && width <= containerWidth) ? containerWidth : containerWidth - viewMoreBtnWidth;
|
||||
(index === chips.length - 1 && width <= containerWidth) || this.paginationData
|
||||
? containerWidth
|
||||
: containerWidth - viewMoreBtnWidth;
|
||||
if (availableSpace >= width - chipMargin) {
|
||||
chipsToDisplay = (this.paginationData ? chipsToDisplay : index) + 1;
|
||||
lastIndex++;
|
||||
|
||||
Reference in New Issue
Block a user