Skip to content

Commit

Permalink
Merge pull request #1305 from igrayson/master
Browse files Browse the repository at this point in the history
[Dialog] Fix dialog maxHeight math.
  • Loading branch information
hai-cea committed Aug 3, 2015
2 parents 12cc301 + 2b88a13 commit 99435d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ let Dialog = React.createClass({
// Force a height if the dialog is taller than clientHeight
if (this.props.autoDetectWindowHeight || this.props.autoScrollBodyContent) {
let styles = this.getStyles();
let maxDialogContentHeight = clientHeight - 2 * (styles.body.padding + paddingTop + 64);
let maxDialogContentHeight = clientHeight - 2 * (styles.body.padding + 64);

if (this.props.title) maxDialogContentHeight -= dialogContent.previousSibling.offsetHeight;
if (this.props.actions) maxDialogContentHeight -= dialogContent.nextSibling.offsetHeight;
Expand Down

0 comments on commit 99435d7

Please sign in to comment.