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 (#11128)
This commit is contained in:
committed by
GitHub
parent
f81348997b
commit
bf8c68e05f
@@ -179,7 +179,7 @@ export class DynamicChipListComponent implements OnChanges, OnInit, AfterViewIni
|
|||||||
chips.reduce((width, val, index) => {
|
chips.reduce((width, val, index) => {
|
||||||
width += val._elementRef.nativeElement.getBoundingClientRect().width + chipMargin;
|
width += val._elementRef.nativeElement.getBoundingClientRect().width + chipMargin;
|
||||||
const availableSpace =
|
const availableSpace =
|
||||||
(index && index === chips.length - 1) || !this.paginationData ? containerWidth - viewMoreBtnWidth : containerWidth;
|
(index === chips.length - 1 && width <= containerWidth) ? containerWidth : containerWidth - viewMoreBtnWidth;
|
||||||
if (availableSpace >= width - chipMargin) {
|
if (availableSpace >= width - chipMargin) {
|
||||||
chipsToDisplay = (this.paginationData ? chipsToDisplay : index) + 1;
|
chipsToDisplay = (this.paginationData ? chipsToDisplay : index) + 1;
|
||||||
lastIndex++;
|
lastIndex++;
|
||||||
|
Reference in New Issue
Block a user