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
Post a Comment