Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
refactor: second attempt to replicate rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
johanlahti committed Sep 5, 2023
1 parent 1daff54 commit 5590f2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5590f2e

Please sign in to comment.