diff --git a/packages/sn-filter-pane/src/components/ListboxGrid/__tests__/distribute-resources.spec.ts b/packages/sn-filter-pane/src/components/ListboxGrid/__tests__/distribute-resources.spec.ts index 25c01a8f..6df401a9 100644 --- a/packages/sn-filter-pane/src/components/ListboxGrid/__tests__/distribute-resources.spec.ts +++ b/packages/sn-filter-pane/src/components/ListboxGrid/__tests__/distribute-resources.spec.ts @@ -254,7 +254,7 @@ describe('distribute resources', () => { describe('expand with one grid item', () => { it('should expand when title is present at height 87px', () => { - const size: ISize = { height: 87, width: 1000, dimensionCount: 10 }; + const size: ISize = { height: 77, width: 1000, dimensionCount: 10 }; const columns = generateColumns({ collapsed: [1] }); const expandPropsGrid: ExpandProps = { hasHeader: true, @@ -266,7 +266,7 @@ describe('distribute resources', () => { }); it('should expand when title is hidden at height 39px', () => { - const size: ISize = { height: 39, width: 1000, dimensionCount: 10 }; + const size: ISize = { height: 49, width: 1000, dimensionCount: 10 }; const columns = generateColumns({ collapsed: [1] }); const expandPropsGrid: ExpandProps = { hasHeader: false, diff --git a/packages/sn-filter-pane/src/components/ListboxGrid/distribute-resources.ts b/packages/sn-filter-pane/src/components/ListboxGrid/distribute-resources.ts index 046f33e6..6194d6ee 100644 --- a/packages/sn-filter-pane/src/components/ListboxGrid/distribute-resources.ts +++ b/packages/sn-filter-pane/src/components/ListboxGrid/distribute-resources.ts @@ -139,7 +139,7 @@ function estimateColumnHeight(column: IColumn) { totHeight += ITEM_SPACING; }); // Subtract one ITEM_SPACING since the first item wont have a margin-top of ITEM_SPACING - totHeight -= ITEM_SPACING; + // totHeight -= ITEM_SPACING; return totHeight; }