diff --git a/x-pack/plugins/reporting/public/components/screen_capture_panel_content.tsx b/x-pack/plugins/reporting/public/components/screen_capture_panel_content.tsx index 76882ffc396f72..13398fb58c5712 100644 --- a/x-pack/plugins/reporting/public/components/screen_capture_panel_content.tsx +++ b/x-pack/plugins/reporting/public/components/screen_capture_panel_content.tsx @@ -86,22 +86,13 @@ export class ScreenCapturePanelContent extends Component { 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 = () => {