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

345
Visualizações
iOS15 Safari - Resize events without scrolling

Could you please tell me how to dispatch the resize event in iOS15 mobile Safari?

The website is originally designed to be responsive. I want to switch to desktop mode view even with a button on the page, so I enabled to overwrite HTML element meta viewport from JavaScript.

<meta name="viewport" content="width=device-width,initial-scale=1">

Just replace the above part with the following, Android Chrome and Firefox instantly resize it on their own without reloading.

<meta name="viewport" content="width="> 

In Safari, when I scroll up, the address bar is displayed and the resizing is triggered. At that time, the media query in CSS is reflected and redrawn with the automatic scale.

I've tried dispatching the resize event and switching style.display property, but it doesn't respond until the user scrolls down/up.

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