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

290
Visualizações
React Material UI dropdown menu position changed during zoom out

In React Material UI v4 or v5, there is a common problem with zoom out, for example, if you put the following style to body or HTML tag:

    body {
    zoom: 80%; /* Zoom out */
    }

all the dropdowns in the Material UI position will be shifted from the correct place that must be on it.

1: This is the correct place without zoom:

enter image description here

2: This is the issue after adding zoom:

enter image description here

3: This is the video for the problem:

Dropdown menu video Mui v4

4: Some notes about this issue:

1- Actually, we can fix the problem using browser zoom out by pressing command and [ - ] key, but I'm looking for a code-based solution without telling the users to do something.

2- Select2 not facing the same issue, you can zoom out and keep the menu in the same place, maybe that because the way of implementing the dropdown is different.

Sandbox link for Select2

3- Angular Material not facing the same issue you can follow the link for the sandbox Angular to make sure there is no issue with zoom out.

5: The question is how to make Material UI behaves like Select2/ Angular Material or the normal dropdown without telling users to do something, How does Material UI determine the dropdown menu position? how we can override this function?

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