Commit 878b41d6 by Torkel Ödegaard Committed by GitHub

Merge pull request #15822 from grafana/copy-panel-retain-size

Keep size from copied panel
parents d4c337b1 2c1be2c3
......@@ -100,7 +100,12 @@ export class AddPanelWidget extends React.Component<Props, State> {
const newPanel: any = {
type: panelPluginInfo.id,
title: 'Panel Title',
gridPos: { x: gridPos.x, y: gridPos.y, w: gridPos.w, h: gridPos.h },
gridPos: {
x: gridPos.x,
y: gridPos.y,
w: panelPluginInfo.defaults.gridPos.w,
h: panelPluginInfo.defaults.gridPos.h,
},
};
// apply panel template / defaults
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment