3 ms·
You're getting downvoted because your complaints are either rather vague (doesn't measuring viewport size exclude scrollbar size, so their size is irrelevant to
by Mithaldu 11y ago
You're getting downvoted because your complaints are either rather vague (doesn't measuring viewport size exclude scrollbar size, so their size is irrelevant to you?) and indicate a desire to mess around with what is very much not yours to mess around with (size, styling, position of scrollbars) which simply means you don't respect your users.
- LoSboccacc 11y agothat's a load of work for some fake internet point. and no on some browser the scrollbars consume layout space and on some they don't. (remember to add the ios/safari monstrosities into the mix) heck, just open this http://www.matanich.com/test/viewport-width/ http://www.matanich.com/test/viewport-width/ on edge/ie11/chrome and see yourself how reliable clientWidth is (especially test edge fullscreen vs edge windowed but fullscreen it will blow your mind)
- hueving 11y agoSo your answer is to make the user experience miserable because you don't like doing work?
- Mithaldu 11y agoAlright, so some browsers like Edge will report the full screen width available even with scrollbar visible, because it fades out the bar after a while. You could've just said that. That is understandable as a reason. Although i still think it's a pretty bad reason to use to force "smoOoOo--oOoth" scroll on everyone, instead of only browsers that are known to be broken.