Reputation: 5441
I have a program which runs on localhost and uses chrome in full screen. When I type into the console
window.innerWidth
I get the result of 1236. When I do that at any other webpage (not localhost) I get 1360 (as I expected).
I have absolutely no idea why is it. It is really messing up my design since the program is made to work with 1360x768 and 1920x1080.
Any ideas why is it happening?
Upvotes: 0
Views: 391
Reputation: 324630
floor(1,360 / 1.1) = 1,236
You are zoomed in by 10% in your browser for the localhost
domain. Press Ctrl+0.
Upvotes: 6