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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
