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

180
Views
How to auto resize width of ui-grid with a flex layout

I'm trying to make the auto-resize directive work but i have an unexpected behavior when the width of the container is shrinking. The ui-grid is not shrinking (it works on expand).

Here is a plunker of my app layout with the problem i'm facing :

http://plnkr.co/edit/IjV4RbEQmkJFBH5t?preview

If i add a width: 100% !important to the grid class the grid start expanding without ever stopping.

Do i have to rewrite the auto-resize directive or is there an other way with css ?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I can't see your code so not sure what you're trying to do.

.parent {
  display: flex;
}

.resize {
  flex: 1 1 auto;
}

Using flex: 1 1 auto on a child where a parent has display: flex will have it automatically expand to fit the parent.

about 4 years ago · Juan Pablo Isaza Report
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!