Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Material UI Grid oversize full screen

working with Material UI Grid, this has oversize full screen and generate horizontal scroll bar, how to can fix it ?

const styles = theme => ({ root: { flexGrow: 1,}, paper: {  padding: theme.spacing.unit * 2,textAlign: 'center',color: theme.palette.text.secondary,},});

generate like horizontal scroll bar

like image 638
Soleil Avatar asked Aug 07 '18 22:08

Soleil


1 Answers

I had the same problem. Find out that using minHeight: "100vh" solves this problem

root: {
  minHeight: "100vh",
}

where i found this solution

the bellow worked too:

root: {
  position: 'fixed',
  width: '100%',
  height: '100%',
  left: 0,
  top: 0,
  zIndex: 10,
}

where i found this solution

like image 152
Erika Lira Avatar answered Nov 03 '22 16:11

Erika Lira