Reputation: 527
I have 4k monitor 3840x2160 but when I use screen.width I get 1920 instead 3840 when I use screen.height I get 1080 instead 2160 why values are incorrect screenshot
Upvotes: 1
Views: 138
Reputation: 455
There is a similar question with the same problem you can check it from this link:
Shouldn't window.screen.width/height correspond to actual screen width/height?
Note: I am on mobile idk how to format the answer
Upvotes: 3