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:
+1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user