mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-10 14:11:42 +00:00
[ACS-9978] DynamicChipListComponent not rendered as expected (#11132)
This commit is contained in:
committed by
GitHub
parent
ac7e21d699
commit
2e20c3da45
@@ -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