Skip to content

Commit

Permalink
[Dialog] Better fullscreen fix
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Jul 24, 2017
1 parent 6864a8c commit 4deee4b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 0 additions & 6 deletions docs/src/pages/component-demos/dialogs/FullScreenDialog.js
Expand Up @@ -18,9 +18,6 @@ const styleSheet = createStyleSheet('FullScreenDialog', {
appBar: {
position: 'relative',
},
paper: {
margin: 0,
},
flex: {
flex: 1,
},
Expand All @@ -45,9 +42,6 @@ class FullScreenDialog extends Component {
<div>
<Button onClick={this.handleOpen}>Open full-screen dialog</Button>
<Dialog
classes={{
paper: classes.paper,
}}
fullScreen
open={this.state.open}
onRequestClose={this.handleRequestClose}
Expand Down
1 change: 1 addition & 0 deletions src/Dialog/Dialog.js
Expand Up @@ -38,6 +38,7 @@ export const styleSheet = createStyleSheet('MuiDialog', theme => ({
maxWidth: theme.breakpoints.getWidth('md'),
},
fullScreen: {
margin: 0,
width: '100%',
maxWidth: '100%',
height: '100%',
Expand Down

0 comments on commit 4deee4b

Please sign in to comment.