diff options
Diffstat (limited to 'client/src/app/shared/shared-main/misc/list-overflow.component.ts')
-rw-r--r-- | client/src/app/shared/shared-main/misc/list-overflow.component.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/shared/shared-main/misc/list-overflow.component.ts b/client/src/app/shared/shared-main/misc/list-overflow.component.ts index 144e0f156..fbc481093 100644 --- a/client/src/app/shared/shared-main/misc/list-overflow.component.ts +++ b/client/src/app/shared/shared-main/misc/list-overflow.component.ts | |||
@@ -22,7 +22,7 @@ export interface ListOverflowItem { | |||
22 | } | 22 | } |
23 | 23 | ||
24 | @Component({ | 24 | @Component({ |
25 | selector: 'list-overflow', | 25 | selector: 'my-list-overflow', |
26 | templateUrl: './list-overflow.component.html', | 26 | templateUrl: './list-overflow.component.html', |
27 | styleUrls: [ './list-overflow.component.scss' ], | 27 | styleUrls: [ './list-overflow.component.scss' ], |
28 | changeDetection: ChangeDetectionStrategy.OnPush | 28 | changeDetection: ChangeDetectionStrategy.OnPush |
@@ -65,7 +65,7 @@ export class ListOverflowComponent<T extends ListOverflowItem> implements AfterV | |||
65 | let showItemsUntilIndexExcluded: number | 65 | let showItemsUntilIndexExcluded: number |
66 | let accWidth = 0 | 66 | let accWidth = 0 |
67 | 67 | ||
68 | for (const [index, el] of this.itemsRendered.toArray().entries()) { | 68 | for (const [ index, el ] of this.itemsRendered.toArray().entries()) { |
69 | accWidth += el.nativeElement.getBoundingClientRect().width | 69 | accWidth += el.nativeElement.getBoundingClientRect().width |
70 | if (showItemsUntilIndexExcluded === undefined) { | 70 | if (showItemsUntilIndexExcluded === undefined) { |
71 | showItemsUntilIndexExcluded = (parentWidth < accWidth) ? index : undefined | 71 | showItemsUntilIndexExcluded = (parentWidth < accWidth) ? index : undefined |