Good afternoon,
I'm making a responsive website where I use CSS with media="screen" and jQuery.
Problem:
However Javascript and CSS do not recognize the same document width value when the page has a scroll bar (when I test in Chrome using Adaptive Design Mode - Ctrl + Shift + M - it works fine) mobile devices and other devices, not having the scroll bar.
Example:
If you run a alert ($(window).width());
to display the width of a scrollbar document on a desktop with a resolution of 1920/1080, it will bring the following response 1903
instead of 1920
Doubt:
Is there a way to grab a window's width from a scrolling page, or to make both Javascript and CSS recognize the width of the document as being the same on the desktop?