django-responsive icon indicating copy to clipboard operation
django-responsive copied to clipboard

Screen Width vs Window Width

Open mlavin opened this issue 13 years ago • 2 comments

Currently the JS uses the screen.width which assumes that the user is browsing at full screen. Really this needs to capture the current window width since that's what the media queries will use.

mlavin avatar Aug 26 '12 18:08 mlavin

http://responsejs.com/labs/dimensions/

mlavin avatar Aug 26 '12 19:08 mlavin

I think it would make sense to add window.innerWidth and .innerHeight to the device info as well, in addition to the screen size. Happy to propose a patch if you are interesting in committing it.

apollodatasolutions avatar Oct 09 '19 17:10 apollodatasolutions