You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/03/03 04:15:00 UTC

[GitHub] [cordova-android] victorzzt commented on issue #870: unable to display in native resolution on Android

victorzzt commented on issue #870: unable to display in native resolution on Android
URL: https://github.com/apache/cordova-android/issues/870#issuecomment-593758901
 
 
   My current workaround:
   
   - In index.html: `<meta name="viewport" content="user-scalable=no, initial-scale=0.5, minimum-scale=0.5, maximum-scale=0.5, width=device-width, viewport-fit=cover">`
   - In index.css the "body" part, add: `transform-origin: 0px 0px; transform: scale(0.5);`
   
   window.innerHeight and window.innerWidth has the native resolution.
   But haven't run test if one pixel is one pixel. Also I don't have enough device to test if it works across different device and different version of android.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org