VisualVeiwPort - meta viewport scale not working

Has anything changed in Cordova, AppStudio (9.1.8.3) or VoltBuilder which could effect the VisualViewPort ?

I can see this in the head,

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

However, my app is scaling down to 0.63 in Portrait and 0.84 in Landscape.

I have just checked one of my older apps and the scale sticks to 1, which is the desired result. But on this app I have just built with VoltBuilder it keeps scaling down?

I’ve only tested it on an iPad so far, iPhone is ok, not tested on Android.

You can enter visualViewport in to the console, which will report back the scale, width and height etc…

I just tried adding to the config:

<preference name="EnableViewPortScale" value="false" />

but that didn’t have any effect.

Resolved.

The scaling down is being caused by my hidden sidebar menu. Rather than the menu width being included with the screen width it was being added to the side with a negative margin, hence the overall width being larger than the screen, hence it was being scaled down to fit.