Skip to content

Commit 50c656b

Browse files
joemaffeioliviertassinari
authored andcommitted
[Drawer] Change height from 100vh to 100% (#12528)
* Drawer height changed from 100vh to 100% * fix argos-ci
1 parent 57e59af commit 50c656b

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

docs/src/pages/demos/drawers/ClippedDrawer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const drawerWidth = 240;
1414
const styles = theme => ({
1515
root: {
1616
flexGrow: 1,
17-
height: 430,
17+
height: 440,
1818
zIndex: 1,
1919
overflow: 'hidden',
2020
position: 'relative',

docs/src/pages/demos/drawers/MiniDrawer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const drawerWidth = 240;
1919
const styles = theme => ({
2020
root: {
2121
flexGrow: 1,
22-
height: 430,
22+
height: 440,
2323
zIndex: 1,
2424
overflow: 'hidden',
2525
position: 'relative',

docs/src/pages/demos/drawers/PermanentDrawer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const styles = theme => ({
1919
flexGrow: 1,
2020
},
2121
appFrame: {
22-
height: 430,
22+
height: 440,
2323
zIndex: 1,
2424
overflow: 'hidden',
2525
position: 'relative',

docs/src/pages/demos/drawers/ResponsiveDrawer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const drawerWidth = 240;
1717
const styles = theme => ({
1818
root: {
1919
flexGrow: 1,
20-
height: 430,
20+
height: 440,
2121
zIndex: 1,
2222
overflow: 'hidden',
2323
position: 'relative',

packages/material-ui/src/Drawer/Drawer.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const styles = theme => ({
3535
overflowY: 'auto',
3636
display: 'flex',
3737
flexDirection: 'column',
38-
height: '100vh',
38+
height: '100%',
3939
flex: '1 0 auto',
4040
zIndex: theme.zIndex.drawer,
4141
WebkitOverflowScrolling: 'touch', // Add iOS momentum scrolling.
@@ -64,7 +64,7 @@ export const styles = theme => ({
6464
bottom: 'auto',
6565
right: 0,
6666
height: 'auto',
67-
maxHeight: '100vh',
67+
maxHeight: '100%',
6868
},
6969
/* Styles applied to the `Paper` component if `anchor="bottom"`. */
7070
paperAnchorBottom: {
@@ -73,7 +73,7 @@ export const styles = theme => ({
7373
bottom: 0,
7474
right: 0,
7575
height: 'auto',
76-
maxHeight: '100vh',
76+
maxHeight: '100%',
7777
},
7878
/* Styles applied to the `Paper` component if `anchor="left"` & `variant` is not "temporary". */
7979
paperAnchorDockedLeft: {

0 commit comments

Comments
 (0)