Commit db2b8ea6 by Peter Holmberg

keep size from copied panel and not from add panel widget

parent 72d5215c
......@@ -95,12 +95,11 @@ export class AddPanelWidget extends React.Component<Props, State> {
onPasteCopiedPanel = panelPluginInfo => {
const dashboard = this.props.dashboard;
const { gridPos } = this.props.panel;
const newPanel: any = {
type: panelPluginInfo.id,
title: 'Panel Title',
gridPos: { x: gridPos.x, y: gridPos.y, w: gridPos.w, h: gridPos.h },
gridPos: panelPluginInfo.defaults.gridPos,
};
// 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