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

344
Views
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
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!