Skip to content

Commit

Permalink
Change height to maxHeight when overflowHeight is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
cchaos committed Oct 21, 2019
1 parent 7c9f95e commit 0e78cad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/code/_code_block.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class EuiCodeBlockImpl extends Component {
const optionalStyles = {};

if (overflowHeight) {
optionalStyles.height = overflowHeight;
optionalStyles.maxHeight = overflowHeight;
}

const codeSnippet = (
Expand Down

0 comments on commit 0e78cad

Please sign in to comment.