0
Not a bug

Displaying incorrect width

Joe Fitzsimmons 5 years ago • updated by Ionuț Botizan 5 years ago 1

Hi there, I love the extension.  Not sure if I just haven't noticed it before or if this is a new bug.  I noticed a problem when the theme I was developing was breaking at the wrong widths in bootstrap.  For a while I thought it was a bug with bootstrap.  To test this, I wrote a simple jQuery script that inserted the viewport width into the page.  Come to find out, bootstrap was breaking at the correct breakpoints, the Window Resizer extension was displaying incorrect values.


Answer

Answer
Not a bug
The viewport sizes are those reported by the browser through window.innerWidth and window.innerHeight. As per W3C recommendation, these should include the scrollbars, which is where the difference is probably coming from.

Just realized I posted this in ideas instead of bugs - sorry!

Answer
Not a bug
The viewport sizes are those reported by the browser through window.innerWidth and window.innerHeight. As per W3C recommendation, these should include the scrollbars, which is where the difference is probably coming from.