Scenes: Save height as itemHeight for repeat panels (#90487)
This commit is contained in:
@@ -172,7 +172,7 @@ export function gridItemToPanel(
|
||||
x = gridItem.state.x ?? 0;
|
||||
y = gridItem.state.y ?? 0;
|
||||
w = gridItem.state.width ?? 0;
|
||||
h = gridItem.state.height ?? 0;
|
||||
h = gridItem.state.itemHeight ?? gridItem.state.height ?? 0;
|
||||
|
||||
return libraryVizPanelToPanel(gridItem.state.body, { x, y, w, h });
|
||||
}
|
||||
@@ -200,7 +200,7 @@ export function gridItemToPanel(
|
||||
x = gridItem_.state.x ?? 0;
|
||||
y = gridItem_.state.y ?? 0;
|
||||
w = gridItem_.state.width ?? 0;
|
||||
h = gridItem_.state.height ?? 0;
|
||||
h = gridItem_.state.itemHeight ?? gridItem_.state.height ?? 0;
|
||||
|
||||
if (!vizPanel) {
|
||||
throw new Error('Unsupported grid item type');
|
||||
|
||||
Reference in New Issue
Block a user