Skip to content

Commit

Permalink
fix(masonry): Add nestLengthY in the constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Karan-Palan committed Aug 25, 2024
1 parent 3698be5 commit d5122c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/masonry/playground/pages/workspace/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,4 @@ export const WORKSPACES_DATA: { id: string; data: Brick[] }[] = [
},
],
},
];
];
3 changes: 2 additions & 1 deletion modules/masonry/src/brick/design0/BrickBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export default class BrickBlock extends BrickModelBlock {
scale: number;
connectAbove: boolean;
connectBelow: boolean;
nestLengthY: number;
}) {
super(params);
const argsKeys = Object.keys(this._args);
Expand All @@ -41,7 +42,7 @@ export default class BrickBlock extends BrickModelBlock {
hasNotchInsTop: this._connectAbove,
hasNotchInsBot: this._connectBelow,
scale: this._scale,
nestLengthY: 30,
nestLengthY: params.nestLengthY,
innerLengthX: 100,
argHeights: Array.from({ length: argsKeys.length }, () => 17),
});
Expand Down

0 comments on commit d5122c8

Please sign in to comment.