mirror of
https://github.com/grafana/grafana.git
synced 2025-02-03 20:21:01 -06:00
Merge pull request #15822 from grafana/copy-panel-retain-size
Keep size from copied panel
This commit is contained in:
commit
878b41d666
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user