diff --git a/superset/assets/javascripts/explore/components/EmbedCodeButton.jsx b/superset/assets/javascripts/explore/components/EmbedCodeButton.jsx index bf411a25be1bf..3582229dd8007 100644 --- a/superset/assets/javascripts/explore/components/EmbedCodeButton.jsx +++ b/superset/assets/javascripts/explore/components/EmbedCodeButton.jsx @@ -25,15 +25,21 @@ export default class EmbedCodeButton extends React.Component { } generateEmbedHTML() { - const srcLink = window.location.origin + this.props.slice.data.standalone_endpoint; - /* eslint max-len: 0 */ - return ` - `; + const srcLink = ( + window.location.origin + + this.props.slice.data.standalone_endpoint + + `&height=${this.state.height}` + ); + return ( + '' + ); } renderPopover() { @@ -43,7 +49,14 @@ export default class EmbedCodeButton extends React.Component {