Skip to content

Commit

Permalink
Merge branch 'feature/dialog-vertical-space' into custom-build
Browse files Browse the repository at this point in the history
* feature/dialog-vertical-space:
  allow to lower minPaddingTop with verticalSace
  • Loading branch information
adam187 committed Jul 27, 2017
2 parents dcdd022 + 8ae9a0d commit 613217b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dialog/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ class DialogInline extends Component {
const container = ReactDOM.findDOMNode(this);
const dialogWindow = ReactDOM.findDOMNode(this.refs.dialogWindow);
const dialogContent = ReactDOM.findDOMNode(this.refs.dialogContent);
const minPaddingTop = 16;
const verticalSpace = getVerticalSpace(this.props, this.context);
const minPaddingTop = Math.min(16, verticalSpace);

// Reset the height in case the window was resized.
dialogWindow.style.height = '';
Expand Down

0 comments on commit 613217b

Please sign in to comment.