mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
I think this code was not supposed to be here
This commit is contained in:
parent
b87d5687d7
commit
b2e5f60afb
1 changed files with 7 additions and 16 deletions
|
@ -86,22 +86,13 @@ export class ScreenCapturePanelContent extends Component<Props, State> {
|
|||
const el = document.querySelector('[data-shared-items-container]');
|
||||
const bounds = el ? el.getBoundingClientRect() : { height: 768, width: 1024 };
|
||||
|
||||
if (this.props.reportType === 'png') {
|
||||
return {
|
||||
dimensions: {
|
||||
height: bounds.height,
|
||||
width: bounds.width,
|
||||
},
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
id: 'preserve_layout',
|
||||
dimensions: {
|
||||
height: bounds.height,
|
||||
width: bounds.width,
|
||||
},
|
||||
};
|
||||
}
|
||||
return {
|
||||
id: 'preserve_layout',
|
||||
dimensions: {
|
||||
height: bounds.height,
|
||||
width: bounds.width,
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
private getJobParams = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue