Serio
Serio

Reputation: 527

incorrect values using screen.width/screen.height

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

Answers (1)

a0m0rajab
a0m0rajab

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

Related Questions