Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

187
Visualizações
Is anyone aware of a way to dynamically resize React drag and dropped items in a grid rather than resize the grid row?

I am trying to build a page that allows the user to add a 'tile' to a grid through drag and drop. I can find a ton of js libraries and CSS / HTML examples for this - but all of them rely on the grid row / column dynamically resizing when an additional 'tile' is dragged to a grid section. I'm trying to find a way that the tiles within any one 'cell' will dynamically resize to fit in the cell when tiles are added or removed.

I've tried to illustrate this - has anyone seen this done either through a js library or css/html (or anything else)? It will be part of a React web page.

In the example below - there is one grid row and two grid columns. When a new tile is dragged to column 2 tile B dynamically resizes to allow the tile to be added without needing the row size to increase (relative to screen size).

Dynamic Resize of Tile B

Thanks for any response.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda