3 ms·
that'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
by LoSboccacc 11y ago
that'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.