Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

120
Views
MaterialUI Grid in flex container not stretching enough for content

During my process of learning MaterialUI I encountered an issue with Grid component. When nesting the Grid container in a flex element with align-items: center; the Grid row is behaving in strange manner. With one row it's often overlaping columns (even though there's a lot of space around it). When adding enough elements to form second column suddenly it expands vastly, but still not enough to prevent overlap. When provided with long value inside it prefers to wrap it instead of expanding the row.

Here I've prepared an jsfiddle presenting this issue. https://jsfiddle.net/cau8wd5q/7/

One solution is using the align-items: stretch;.

GOAL:I'd prefer Grid taking as little space as possible while still trying to fit every column in one line instead of wraping and wrap only if it's not possible.

Is it possible to do it using MaterualUI Grid? There's a high chance I'm missing something obvious.

Grid component in flex container

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!