iOS Monaca Debugger (3.2.0) Does Not Work in Viewport

Asked 1 years ago, Updated 1 years ago, 37 views

Starting this week (after iOS Monaca debugger (3.2.0), the viewport will not work and the screen will be quadrupled.
"Of course, ""Enable Viewport Control"" is checked in the iOS app, and monaca.viewport({width:640}); is specified."
Please let me know if anyone has a solution or workaround.
Environment:iPhone6plus iOS:v8.1.2
Enter a description of the image here

javascript ios monaca

2022-09-30 12:07

1 Answers

I tried the template Hello World app and found a similar bug.

The solution to this problem was to comment out monaca.viewport and insert the meta tag below.

<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1, user-scalable=no">

[Before commenting out]
Enter a description of the image here

[After commenting out]
Enter a description of the image here


2022-09-30 12:07

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.