DefaultGridLayoutManager: Add itemHeight to DashboardGridItem when duplicating panel (#97648)

* add itemHeight to DashboardGridItem when duplicating panel

* adjust test to include itemHeight check
This commit is contained in:
Sergej-Vlasov
2024-12-12 12:57:42 +02:00
committed by GitHub
parent 32554c78a8
commit 8009af54be
2 changed files with 2 additions and 0 deletions
@@ -197,6 +197,7 @@ describe('DefaultGridLayoutManager', () => {
const newGridItem = grid.state.children[grid.state.children.length - 1] as DashboardGridItem;
expect(newGridItem.state.height).toBe(1);
expect(newGridItem.state.itemHeight).toBe(1);
});
it('Should duplicate a repeated panel', () => {
@@ -183,6 +183,7 @@ export class DefaultGridLayoutManager
x: gridItem.state.x,
y: gridItem.state.y,
height: gridItem.state.height,
itemHeight: gridItem.state.height,
width: gridItem.state.width,
variableName: gridItem.state.variableName,
repeatDirection: gridItem.state.repeatDirection,