|
|
@@ -139,7 +139,7 @@ class ViewLayout extends React.PureComponent {
|
|
|
render() {
|
|
|
const { dashboardDesigner, contentSize, lastContentSize, dispatch } = this.props;
|
|
|
const { editingKey } = this.state;
|
|
|
- const { editMode, minLayoutHeight } = dashboardDesigner;
|
|
|
+ const { editMode, minLayoutHeight, layoutMargin } = dashboardDesigner;
|
|
|
const { visiblePreviewBox, previewItem } = this.state;
|
|
|
const children = dashboardDesigner.items.map((item) => this.createElement(item, false, !item.chartOption));
|
|
|
return (<div className='dashboard-viewcontent'>
|
|
|
@@ -147,7 +147,7 @@ class ViewLayout extends React.PureComponent {
|
|
|
width={ contentSize.width ? contentSize.width : lastContentSize.width }
|
|
|
autoSize={true}
|
|
|
cols={12}
|
|
|
- margin = {editMode ? [12, 12] : [12, 12]}
|
|
|
+ margin = {editMode ? layoutMargin : layoutMargin}
|
|
|
rowHeight = {minLayoutHeight}
|
|
|
isDraggable={editMode && !editingKey}
|
|
|
isResizable={editMode && !editingKey}
|