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

265
Visualizações
Javascript/React: Overflow X Visible, Overflow Y Auto

Is there a React/javascript based solution to fix the overflow-x-visible with overflow-y-auto issue?

I have a sticky sidebar in React that when clicked will reveal an options menu (see screenshots below). Researching, overflow-x-visible with overflow-y-auto is a ongoing issue. I've implemented a number of the proposed solutions including: style="padding-bottom: 250px; margin-bottom: -250px; and creating a wider div container here and here. I've also been working through this tutorial. However, I can't get it to work for my use case.

Shortened code using Tailwind CSS:

<Sidebar className="h-96 overflow-y-auto overflow-x-visible">
    <SidebarItemNew className="relative">      
         <DropdownOptions className="absolute"/>
    </SidebarItemNew>     
</Sidebar>

Overflow X visible. This is what I want to accomplish but with a y auto scrollbar

Overflow Y auto, X-Visible (code shown above)

Any way to get this working for React? Thanks for the help!

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

To fix this issue, I used React Portal to break the child element out of into its own DOM node. Then I used React Popper following this tutorial. It works great now!

about 4 years ago · Juan Pablo Isaza Relatório
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