javascript - Get height of the retina screen using Jquery -


As specified in

The solution of Samsung Tab 8.4 is 1600 x 2560 pixels, 360 ppi, But I try to get the height with JQUERY using the $ (window). Heights () , it gives 1280.

The resolution of the Samsung S3 I9300 is 720 × 1280, 306 PPI, but when I try to get the height with JQUERY using the $. Hi () , it returns the correct value of 1280.

window.devicePixelRatio = 2 for both devices.

Why does Samsung tab 8.4 return half of original value?

How do I get it back to the right height?

Is there any other factor that is considered as retina display?


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -